aboutsummaryrefslogtreecommitdiff
path: root/libraries/Firmata
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-07-30 20:48:59 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-07-30 20:48:59 +0000
commit8032397b18db0a9d564988056dbe03bfb2a6658b (patch)
treeaff80d8d08102839c3afb7e3a1f28fee761bb6d3 /libraries/Firmata
parent65e95030c6fbaa5a4a1399241547b94868e435c5 (diff)
Updating to rev. 27 of Firmata.
Diffstat (limited to 'libraries/Firmata')
-rw-r--r--libraries/Firmata/examples/I2CFirmata/I2CFirmata.pde5
-rw-r--r--libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde3
2 files changed, 3 insertions, 5 deletions
diff --git a/libraries/Firmata/examples/I2CFirmata/I2CFirmata.pde b/libraries/Firmata/examples/I2CFirmata/I2CFirmata.pde
index 3cd2451..796a8d5 100644
--- a/libraries/Firmata/examples/I2CFirmata/I2CFirmata.pde
+++ b/libraries/Firmata/examples/I2CFirmata/I2CFirmata.pde
@@ -196,10 +196,7 @@ void setup()
pinMode(i, OUTPUT);
}
- /* I2C data is not reliable at higher baud rates, you'll need to change the
- baud rate on the host computer as well. To get a firmware running with
- minimal effort, you can try using the default baud rate (115200) */
- Firmata.begin(38400);
+ Firmata.begin(57600);
Wire.begin();
}
diff --git a/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde b/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde
index 02192cc..16c8b87 100644
--- a/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde
+++ b/libraries/Firmata/examples/StandardFirmata/StandardFirmata.pde
@@ -99,7 +99,8 @@ void setPinModeCallback(byte pin, int mode) {
}
if(pin > 1) { // ignore RxTx (pins 0 and 1)
- reportAnalogCallback(pin - 14, mode == ANALOG ? 1 : 0); // turn on/off reporting
+ if(pin > 13)
+ reportAnalogCallback(pin - 14, mode == ANALOG ? 1 : 0); // turn on/off reporting
switch(mode) {
case ANALOG:
digitalWrite(pin, LOW); // disable internal pull-ups and fall thru to 'case INPUT:'