
LCD 1602 con teclado en Arduino Uno
#include <LiquidCrystal.h> LiquidCrystal lcd(8, 9, 4, 5, 6, 7); 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() // para leer los botones int read_LCD_buttons() { adc_key_in = analogRead(0); // Leemos A0 // Mis botones dan: …