arduino-lcd-keyboard-shield

KEYPAD SHIELD FOR ARDUINO

Category: Tags: ,

Product Description

Program:-

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
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 < 60) {
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”);
}
}

Additional Information

Weight 50 g
Dimensions 80 x 60 x 35 mm

Reviews

There are no reviews yet.

Be the first to review “KEYPAD SHIELD FOR ARDUINO”

  • Selection Required: Select product options above before making new offer.
  • Offer Sent! Your offer has been received and will be processed as soon as possible.
  • Error: There was an error sending your offer, please try again. If this problem persists, please contact us.

Make Offer

To make an offer please complete the form below:








Please wait...