Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal.h>
- const int dp4 = 4;
- const int dp5 = 5;
- const int dp6 = 6;
- const int dp7 = 7;
- const int enable = 12;
- const int dataInstruction = 11;
- LiquidCrystal lcd(dataInstruction, enable, dp4, dp5, dp6, dp7);
- void setup() {
- lcd.begin(16, 2);
- lcd.print("Hello, World!");
- pinMode(dp4, OUTPUT);
- pinMode(dp5, OUTPUT);
- pinMode(dp6, OUTPUT);
- pinMode(dp7, OUTPUT);
- pinMode(enable, OUTPUT);
- pinMode(dataInstruction, OUTPUT);
- }
- void loop() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement