Skip to content

Commit

Permalink
arduino_textserial: add Arduino code example
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Jun 30, 2011
1 parent 9fa4d42 commit 6fdde50
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
12 changes: 0 additions & 12 deletions arduino_analogdump.pde

This file was deleted.

19 changes: 19 additions & 0 deletions arduino_textserial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6fdde50

Please sign in to comment.