Hi guys
Was doing some arduino stuff last night - Editing and uploading a few lines at a time as I always do...
Then out of no where I started getting this error message
Binary sketch size: 2488 bytes (of a 30720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
OS is W7
Its been fine for 2+ years
board is duemilianove
IC is the 328
I have tried multiple IC's
The code when it stopped is this... as you can see nothing taxing at all
// include the library code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 7, 6, 5, 4, 3);
//input buttons
const int MenuButton = 19;
const int UpButton = 18;
const int DownButton = 1;
const int SaveButton = 0;
int MenuState = 0;
int UpState = 0;
int DownState = 0;
int SaveState = 0;
void setup() {
pinMode(MenuButton, INPUT);
pinMode(UpButton, INPUT);
pinMode(DownButton, INPUT);
pinMode(SaveButton, INPUT);
//splashscreen
lcd.begin(16, 2);
lcd.print("ScopeBuddy_final.pde");
delay(2500);
lcd.clear();
}
void loop() {
int Mode = 0;
MenuState = digitalRead(MenuButton);
if (MenuState, HIGH){
Mode++;
}
switch(Mode){
case 0:
lcd.clear();
lcd.print("Case 0");
delay(3000);
case 1:
lcd.clear();
lcd.print("Case 1");
delay(3000);
case 2:
lcd.clear();
lcd.print("Case 2");
delay(3000);
case 3:
lcd.clear();
lcd.print("Case 3");
delay(3000);
}
}
Any help would be much appreciated
Thanks