just started and i get this message when i run my code
Sketch uses 2 774 bytes (8%) of program storage space. Maximum is 32 256 bytes.
Global variables use 105 bytes (5%) of dynamic memory, leaving 1 943 bytes for local variables. Maximum is 2 048 bytes.
anyone knows how to fix this?
dont think its anythin wrong with the code, but here it is.
#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("crystalball");
}
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);
switch (reply) {
case 0:
lcd.print("yes");
break;
case 1:
lcd.print("I DONT KNOW");
break;
case 2:
lcd.print("no");
break;
}
}
}
prevswitchState = switchState;
}
hope u can help me
u