diff options
Diffstat (limited to 'libraries/Firmata/examples/AllInputsFirmata')
-rw-r--r-- | libraries/Firmata/examples/AllInputsFirmata/AllInputsFirmata.ino (renamed from libraries/Firmata/examples/AllInputsFirmata/AllInputsFirmata.pde) | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libraries/Firmata/examples/AllInputsFirmata/AllInputsFirmata.pde b/libraries/Firmata/examples/AllInputsFirmata/AllInputsFirmata.ino index 5bca72a..bff7366 100644 --- a/libraries/Firmata/examples/AllInputsFirmata/AllInputsFirmata.pde +++ b/libraries/Firmata/examples/AllInputsFirmata/AllInputsFirmata.ino @@ -1,3 +1,14 @@ +/* + * Firmata is a generic protocol for communicating with microcontrollers + * from software on a host computer. It is intended to work with + * any host computer software package. + * + * To download a host software package, please clink on the following link + * to open the download page in your default browser. + * + * http://firmata.org/wiki/Download + */ + /* * This firmware reads all inputs and sends them as fast as it can. It was * inspired by the ease-of-use of the Arduino2Max program. @@ -56,7 +67,7 @@ void loop() byte i; for (i=0; i<TOTAL_PORTS; i++) { - sendPort(i, readPort(i)); + sendPort(i, readPort(i, 0xff)); } /* make sure that the FTDI buffer doesn't go over 60 bytes, otherwise you get long, random delays. So only read analogs every 20ms or so */ |