|
|
Número de pieza | DFR0009 | |
Descripción | LCD Keypad Shield | |
Fabricantes | D-Robotics | |
Logotipo | ||
Hay una vista previa y un enlace de descarga de DFR0009 (archivo pdf) en la parte inferior de esta página. Total 7 Páginas | ||
No Preview Available ! LCD Keypad Shield
(DFR0009)
D-Robotics UK (www.droboticsonline.com)
This is a very popular LCD Keypad shield for Arduino or
Freeduino board
D-Robotics
6/25/2011
Free Datasheet http://www.datasheet4u.com/
1 page 29 digitalWrite(13, HIGH);
30 key = get_key(adc_key_in); // convert into key press
31 if (key != oldkey) // if keypress is detected
32 {
33 delay(50); // wait for debounce time
34 adc_key_in = analogRead(0); // read the value from the sensor
35 key = get_key(adc_key_in); // convert into key press
36 if (key != oldkey)
37 {
38 oldkey = key;
39 if (key >=0){
40 lcd.cursorTo(2, 0); //line=2, x=0
41 lcd.printIn(msgs[key]);
42 }
43 }
44 }
45 digitalWrite(13, LOW);
46 }
47 // Convert ADC value to key number
48 int get_key(unsigned int input)
49 { int k;
50 for (k = 0; k < NUM_KEYS; k++)
51 {
52 if (input < adc_key_val[k])
53 { return k; }
54 }
55 if (k >= NUM_KEYS)
56 k = -1; // No valid key pressed
57 return k;
58 }
5.2 Example use of LiquidCrystal library
1 //Sample using LiquidCrystal library
2 #include <LiquidCrystal.h>
3
4 /*******************************************************
5
6 This program will test the LCD panel and the buttons
7 Mark Bramwell, July 2010
8
9 ********************************************************/
10
11 // select the pins used on the LCD panel
12 LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
Page | 5
Free Datasheet http://www.datasheet4u.com/
5 Page |
Páginas | Total 7 Páginas | |
PDF Descargar | [ Datasheet DFR0009.PDF ] |
Número de pieza | Descripción | Fabricantes |
DFR0009 | LCD Keypad Shield | D-Robotics |
DFR0009 | LCD Shield | DFRobot |
Número de pieza | Descripción | Fabricantes |
SLA6805M | High Voltage 3 phase Motor Driver IC. |
Sanken |
SDC1742 | 12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters. |
Analog Devices |
DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares, |
DataSheet.es | 2020 | Privacy Policy | Contacto | Buscar |