Devices & Components
Arduino Mega 2560 Rev3
Standard LCD - 16x2 White on Blue
Solderless Breadboard Full Size
Resistor 100k ohm
Software & Tools
Arduino IDE
Project description
Code
MEGA BREAD - LCD
arduino
:LCD Display
1/* MEGA BREAD - LCD - Final 2 * Created by Pigeon Kicker and Mini Pigeon 3 * LCD code for 8 bit 4*/ 5 6#include <LiquidCrystal.h> 7 8// initialize the library with the numbers of the interface pins 9LiquidCrystal lcd1(29,28,30,31,32,33); // Set up Left LCD in 8 bit mode 10 11void setup() { 12 lcd1.begin(16, 2); 13 lcd1.clear(); 14 lcd1.setCursor(0, 0); 15 lcd1.print("I AM MEGA BREAD."); 16 lcd1.setCursor(0, 1); 17 lcd1.print(" LCD A - Left "); 18 19} 20 21void loop() { 22 23 lcd1.clear(); 24 delay(1500); 25 lcd1.setCursor(0, 0); 26 lcd1.print("I AM MEGA BREAD."); 27 lcd1.setCursor(0, 1); 28 lcd1.print(" LCD 1 - Right "); 29 delay(3000); 30 } 31 32
MEGA BREAD - LCD
arduino
:LCD Display
1/* MEGA BREAD - LCD - Final 2 * Created by Pigeon Kicker and Mini Pigeon 3 4 * LCD code for 8 bit 5*/ 6 7#include <LiquidCrystal.h> 8 9// initialize 10 the library with the numbers of the interface pins 11LiquidCrystal lcd1(29,28,30,31,32,33); 12 // Set up Left LCD in 8 bit mode 13 14void setup() { 15 lcd1.begin(16, 2); 16 17 lcd1.clear(); 18 lcd1.setCursor(0, 0); 19 lcd1.print("I AM MEGA BREAD."); 20 21 lcd1.setCursor(0, 1); 22 lcd1.print(" LCD A - Left "); 23 24} 25 26void 27 loop() { 28 29 lcd1.clear(); 30 delay(1500); 31 lcd1.setCursor(0, 32 0); 33 lcd1.print("I AM MEGA BREAD."); 34 lcd1.setCursor(0, 1); 35 lcd1.print(" 36 LCD 1 - Right "); 37 delay(3000); 38 } 39 40
Downloadable files
MEGA BREAD - LCD
LCD display
MEGA BREAD - LCD
Comments
Only logged in users can leave comments