-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added a reference to the co-author of class DirectPin.
- Loading branch information
Showing
2 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
* | ||
* DirectInteract this is a helper class to direct interaction with a set of Arduino pins. | ||
* | ||
* @author Valeriy V Dmitriev aka valmat <[email protected]> | ||
* @author ... | ||
* @licenses MIT https://opensource.org/licenses/MIT | ||
* @repo https://github.com/valmat/LedMatrix | ||
* @author Valeriy V Dmitriev aka valmat <[email protected]> | ||
* @coauthor Nikolai Tikhonov aka Dragon_Knight <[email protected]>, https://vk.com/globalzone_edev | ||
* @licenses MIT https://opensource.org/licenses/MIT | ||
* @repo https://github.com/valmat/LedMatrix | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
* The purpose of this class is to increase speed by eliminating unnecessary in this case checks. | ||
* Not all methods are implemented, but only those that are needed within the library. | ||
* | ||
* @author Valeriy V Dmitriev aka valmat <[email protected]> | ||
* @author ... | ||
* @licenses MIT https://opensource.org/licenses/MIT | ||
* @repo https://github.com/valmat/LedMatrix | ||
* @author Valeriy V Dmitriev aka valmat <[email protected]> | ||
* @coauthor Nikolai Tikhonov aka Dragon_Knight <[email protected]>, https://vk.com/globalzone_edev | ||
* @licenses MIT https://opensource.org/licenses/MIT | ||
* @repo https://github.com/valmat/LedMatrix | ||
* | ||
*/ | ||
|
||
|
@@ -39,25 +39,25 @@ class DirectPin | |
{} | ||
|
||
// Directly set mode as `OUTPUT` | ||
void modeOut(bool mode) | ||
void modeOut(bool mode) const | ||
{ | ||
*(_baseReg + 1) |= _bitMask; | ||
} | ||
|
||
// Directly set mode as `INPUT` | ||
void modeIn() | ||
void modeIn() const | ||
{ | ||
*(_baseReg + 1) &= ~_bitMask; | ||
} | ||
|
||
// Directly set mode as `OUTPUT` | ||
void modeOut() | ||
void modeOut() const | ||
{ | ||
*(_baseReg + 1) |= _bitMask; | ||
} | ||
|
||
// Directly set mode | ||
void setMode(uint8_t mode) | ||
void setMode(uint8_t mode) const | ||
{ | ||
if(OUTPUT == mode) { | ||
modeOut(); | ||
|
@@ -105,7 +105,6 @@ class DirectPin | |
{ | ||
for(uint8_t i = 0; i < 8; ++i) { | ||
turn(val & (1 << i)); | ||
|
||
clock.on(); | ||
clock.off(); | ||
} | ||
|