Description
LCD Keypad shield 16×2 characters with blue backlight. For use with Arduino Uno, Mega, Diecimila and Duemilanove. Contrast is adjustable via the potentiometer.
LCD Keypad shield specifications:
– Blue backlight and white characters
– Works with the 4 Bit Arduino LCD Library
– Left, right, up, down and select buttons
– Adjustable contrast
– Arduino reset button
| Pin |
Role |
| Analog 0 |
Buttons |
| Digital 4 |
DB4 |
| Digital 5 |
DB5 |
| Digital 6 |
DB6 |
| Digital 7 |
DB7 |
| Digital 8 |
RS (Data or signal selection display) |
| Digital 9 |
Enable |
| Digital 10 |
Backlight control |
Arduino code example:
To make the LCD screen work with the Arduino example sketches use the pins below in combination with the LiquidCrystal library:
LiquidCrystal LCD (8,9,4,5,6,7);
See the code example below for reading the buttons:
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup() {
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print("LCD Key Shield");
lcd.setCursor(0,1);
lcd.print("Press Key:");
}
void loop() {
int x;
x = analogRead (0);
lcd.setCursor(10,1);
if (x < 100) {
lcd.print ("Right ");
}
else if (x < 200) {
lcd.print ("Up ");
}
else if (x < 400){
lcd.print ("Down ");
}
else if (x < 600){
lcd.print ("Left ");
}
else if (x < 800){
lcd.print ("Select");
}
}
Only logged in customers who have purchased this product may leave a review.
Shipping within the Netherlands
This product will be delivered via PostNL letter post in a bubble envelope.- €3.45 shipping costs for orders under €25.
- €2.95 shipping costs for orders between €25 - €45.
- Orders above € 45,- will be
free of charge sent by PostNL letter post.
Ordered before 16:30 PM on workdays, shipped the same day!
Click here for costs outside the Netherlands.
Reviews
There are no reviews yet.