Stap 3: Code
Nu laten we de code te schrijven...
#include <LiquidCrystal.h> //Include the library that enables you to use the LCD.
LiquidCrystal lcd(2,3,4,5,6,7);//Declare that your LCD is connected to pins 2,3,4,5,6 & 7 on your arduino.
void setup() { lcd.begin(16, 2);//16 by 2 are the dimensions of the LCD (in number of characters) lcd.print("My name is Bond");//print "My name is Bond," on the LCD lcd.setCursor(0, 1); //break a line lcd.print("controlled LCD!");//print "James Bond" on the second line of the LCD. } void loop() { }