forked from tino/pyFirmata
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polling of analogue or digital pins now causes an exception
Some users just don't read the README, do some polling instead of using callbacks and then fire off an issue (#16). To prevent wasting my time the library now does a hard exception if somebody tries polling. This then recommends pyfirmata1.
- Loading branch information
Showing
3 changed files
with
11 additions
and
9 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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import serial | ||
import serial.tools.list_ports | ||
|
||
print("Serial devices available:") | ||
l = serial.tools.list_ports.comports() | ||
for ll in l: | ||
print(ll.device, ll.description) | ||
#!/usr/bin/python | ||
|
||
import serial | ||
import serial.tools.list_ports | ||
|
||
print("Serial devices available:") | ||
l = serial.tools.list_ports.comports() | ||
for ll in l: | ||
print(ll.device, ll.description) |
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