Basically I want the device to have a "boot screen" with a loading bar at the bottom that scrolls across the screen. It works perfectly when I upload it or reset it without unplugging the arduino. but as soon as the arduino looses power, the glyphs get corrupted. However, they somehow get "uncorrupted" if i reset the arduino. you can see what i mean in this video: http://www.youtube.com/watch?v=s8sur_Da7IY sorry about horrible audio/video. i was using my cheapo smartphone camera.
Here is my code for the glyphs:
byte one[8] = {
B10000,
B10000,
B10000,
B10000,
B10000,
B10000,
B10000,
B10000,
};byte two[8] = {
B11000,
B11000,
B11000,
B11000,
B11000,
B11000,
B11000,
B11000,
};byte three[8] = {
B11100,
B11100,
B11100,
B11100,
B11100,
B11100,
B11100,
B11100,
};byte four[8] = {
B11110,
B11110,
B11110,
B11110,
B11110,
B11110,
B11110,
B11110,
};byte five[8] = {
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
};
and here is the code for the "Boot screen"
void bootScreen(){
lcd.clear();
lcd.setCursor(1,0);
lcd.print("Device booting up.");
lcd.setCursor(3,1);
lcd.print("Please wait...");
for (int f = 0; f < 20; f++){
lcd.setCursor(f,2);
lcd.write(byte(1));
lcd.setCursor(f,3);
lcd.write(byte(1));
delay(50);lcd.setCursor(f,2);
lcd.write(byte(2));
lcd.setCursor(f,3);
lcd.write(byte(2));
delay(50);lcd.setCursor(f,2);
lcd.write(byte(3));
lcd.setCursor(f,3);
lcd.write(byte(3));
delay(50);lcd.setCursor(f,2);
lcd.write(byte(4));
lcd.setCursor(f,3);
lcd.write(byte(4));
delay(50);lcd.setCursor(f,2);
lcd.write(byte(5));
lcd.setCursor(f,3);
lcd.write(byte(5));
delay(100);
}
}
sorry that there is so much code.