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