-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Board setup - better pins and modes handling
* Enhanced autoconfig, which handles capabilities query with mixed modes (fixes issue #51) * Pins can be both digital and analog pin (analog pins could be often used as digital pins) * All pins are saved into global board.pins list, each pins exists in one instance and in board.digital/board.analog are references to the same objects
- Loading branch information
Showing
3 changed files
with
136 additions
and
130 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 |
---|---|---|
|
@@ -138,6 +138,7 @@ def start(self): | |
def stop(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
import doctest | ||
doctest.testmod() | ||
|
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
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