From 45fc1abd77c33d93af52bb190cce08c17f4e8009 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 9 Feb 2023 23:46:26 -0500 Subject: [PATCH] Changes to get script working. ALSO, the cheap Arduino Nanos I am buying sometimes use the old bootloader --- ino/takeup/takeup.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ino/takeup/takeup.ino b/ino/takeup/takeup.ino index 93b5c87..6fdf775 100644 --- a/ino/takeup/takeup.ino +++ b/ino/takeup/takeup.ino @@ -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);