forked from nonolith/pixelpulse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arduino_textserial: add Arduino code example
- Loading branch information
1 parent
9fa4d42
commit 6fdde50
Showing
2 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,6 +3,25 @@ | |
# Distributed under the terms of the BSD License | ||
# (C) 2011 Kevin Mehall (Nonolith Labs) <[email protected]> | ||
|
||
""" | ||
You might use the following Arduino code with this driver. | ||
Just print space-separated decimal channel values, separated by newlines | ||
void setup(){ | ||
Serial.begin(115200); | ||
} | ||
void loop(){ | ||
for (int i=0;i<6;i++){ | ||
Serial.print(analogRead(i)); | ||
Serial.print(" "); | ||
} | ||
Serial.print("\r\n"); | ||
delay(100); | ||
} | ||
""" | ||
|
||
import pixelpulse | ||
import tornado_serial | ||
|
||
|