/* Program 3-2 Flash two numbers on LCD on EduBaseV2 board with Arduino * * The LCD controller is connected parallel in 4-bit data mode. * The connections are: * Pin 12 - Register select * Pin 11 - Enable * Pins 5, 4, 3, 2 - data 7-4 * Make sure the LCD interface selection jumper is set at "parallel". * * This program uses LiquidCrystal library. For details of libraries: * https://www.arduino.cc/en/Reference/LiquidCrystal */ /* include the library code */ #include /* initialize the library with the numbers of the interface pins * LiquidCrystal(rs, enable, d4, d5, d6, d7) */ LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { /* set up the LCD's number of columns and rows: 16x2 */ lcd.begin(16, 2); } void loop() { /* display the numbers */ lcd.print(3.1416); lcd.print(", "); lcd.print(2.71828); delay(1000); /* erase the numbers */ lcd.clear(); delay(1000); }