Changes to get script working. ALSO, the cheap Arduino Nanos I am buying sometimes use the old bootloader

This commit is contained in:
mmcwilliams 2023-02-09 23:46:26 -05:00
parent 31d1a6dbba
commit 45fc1abd77
1 changed files with 4 additions and 2 deletions

View File

@ -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);