35
35
36
36
Follow the instructions in the NETWORK CONFIGURATION section below to
37
37
configure your particular hardware.
38
+
39
+ NOTE: If you are using an Arduino Ethernet shield you cannot use the following pins on
40
+ the following boards. Firmata will ignore any requests to use these pins:
41
+
42
+ - Arduino Uno or other ATMega328 boards: (D4, D10, D11, D12, D13)
43
+ - Arduino Mega: (D4, D10, D50, D51, D52, D53)
44
+ - Arduino Leonardo: (D4, D10)
45
+ - Arduino Due: (D4, D10)
38
46
*/
39
47
40
48
#include < Servo.h>
@@ -784,7 +792,6 @@ void setup()
784
792
#endif
785
793
#endif
786
794
787
- delay (1000 ); // TODO: determine if this delay is necessary and if so how short it can be
788
795
DEBUG_PRINTLN (" connecting..." );
789
796
790
797
Firmata.setFirmwareVersion (FIRMATA_MAJOR_VERSION, FIRMATA_MINOR_VERSION);
@@ -807,7 +814,8 @@ void setup()
807
814
|| 4 == i // SD-Card on Ethernet-shiedl uses pin 4 for SS
808
815
|| 10 == i // Ethernet-shield uses pin 10 for SS
809
816
#if defined(__AVR_ATmega32U4__)
810
- || 28 == i // On Leonardo, pin 28 is A10 which maps to D10
817
+ || 24 == i // On Leonardo, pin 24 maps to D4 and pin 28 maps to D10
818
+ || 28 == i
811
819
#endif
812
820
) {
813
821
pinConfig[i] = IGNORE;
@@ -819,7 +827,6 @@ void setup()
819
827
digitalWrite (PIN_TO_DIGITAL (4 ), HIGH); // SS is active low;
820
828
821
829
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
822
- setPinModeCallback (53 , IGNORE); // on MEGA as 53 is hardware SS
823
830
pinMode (PIN_TO_DIGITAL (53 ), OUTPUT); // configure hardware SS as output on MEGA
824
831
#endif
825
832
0 commit comments