Devices & Components
Standard LCD - 16x2 White on Blue
Software & Tools
Arduino IDE
Project description
Code
Untitled file
c_cpp
Makes a display on the lcd that you can look at and it looks back and blinks!
1#include <LiquidCrystal.h> 2LiquidCrystal 3lcd(12, 11, 5, 4, 3, 2); //change these values from greatest to least depending on what digtal pins are hooked to your lcd screen 4byte eye_one[8] = { 5 B00000, 6 B00000, 7 B11111, 8 B11111, 9 B11111, 10 B11111, 11 B00000, 12 B00000 13}; 14void setup() { 15 lcd.begin(16, 2); 16 lcd.createChar(0, eye_one); 17} 18 19void loop() { 20 // put your main code here, to run repeatedly: 21 lcd.setCursor(6, 0); 22 lcd.write(byte(0)); 23 lcd.setCursor(8, 0); 24 lcd.write(byte(0)); 25 delay(10000); 26 lcd.setCursor(6, 0); 27 lcd.print("> <"); 28 delay(500); 29}
Comments
Only logged in users can leave comments