Posts

Showing posts from May, 2014

Testing LCD Keypad Shield Menggunakan Arduino Uno

Image
Pada kali ini diberikan contoh program untuk membuat aplikasi menggunakan Arduino Uno dan LCD Keypad Shield . Program yang dapat dicoba adalah: /************************************************************************************* Mark Bramwell, July 2010 This program will test the LCD panel and the buttons.When you push the button on the shield, the screen will show the corresponding one. Connection: Plug the LCD Keypad to the UNO(or other controllers) **************************************************************************************/ #include <LiquidCrystal.h> LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // select the pins used on the LCD panel // define some values used by the panel and buttons int lcd_key = 0; int adc_key_in = 0; #define btnRIGHT 0 #define btnUP 1 #define btnDOWN 2 #define btnLEFT 3 #define btnSELECT 4 #define btnNONE 5 int read_LCD_buttons(){ // read the buttons adc_key_in = analogRead(0