This should be Working, But it isn't Arduino Starter Kit Crystal Ball
the button not anything. loaded example program , worked perfectly. checked code word word example, finding no differences. thing noticed when programs compiled used different amounts of memory. appreciate if can figure out , please excuse poor coding skills because i've been doing 5 hours. code: [select] #include <liquidcrystal.h> liquidcrystal lcd(12, 11, 5, 4, 3, 2); const int switchpin = 6; int switchstate = 0; int prevswitchstate = 0; int reply; void setup() { lcd.begin(16, 2); pinmode(switchpin, input); lcd.print("ask the"); lcd.setcursor(0,1); lcd.print("crystal ball!"); } void loop() { switchstate = digitalread(switchpin); if (switchstate != prevswitchstate){ if(switchstate = low){ reply = random(8); lcd.clear(); lcd.setcursor(0, 0); lcd.print("the ball says:"); lcd.setcursor(0, 1); ...