Changes to get script working. ALSO, the cheap Arduino Nanos I am buying sometimes use the old bootloader
This commit is contained in:
parent
31d1a6dbba
commit
45fc1abd77
|
@ -1,6 +1,6 @@
|
|||
|
||||
/**
|
||||
* Arduino Nano
|
||||
* Arduino Nano (Old Bootloader?)
|
||||
* L298N
|
||||
**/
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
|||
const int Buttons[2] = {Fbutton, Bbutton};
|
||||
volatile int ButtonState[4] = {1, 1};
|
||||
volatile long ButtonTime[4] = {0, 0};
|
||||
volatile long buttontime = 0;
|
||||
|
||||
const int Fmotor = 0;
|
||||
const int Bmotor = 1;
|
||||
|
@ -39,7 +40,8 @@ SoftwareSerial softSerial (Fsignal, Bsignal);
|
|||
|
||||
void setup() {
|
||||
Serial.begin(57600);
|
||||
softSerialmy.begin(9600);
|
||||
softSerial.begin(9600);
|
||||
|
||||
pinMode(Fpos, OUTPUT);
|
||||
pinMode(Fneg, OUTPUT);
|
||||
pinMode(Bpos, OUTPUT);
|
||||
|
|
Loading…
Reference in New Issue