#include <Keypad.h>
#include <LiquidCrystal.h>
/* Keypad*/
const byte ROWS = 4
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
/* leds */
const byte SIZE = 9 ;
const byte leds [SIZE] = {2, 3, 4, 5, 6, 7, 8, 9, 10} ;
/* leds */
char KEY ;
const char ZERO = '0'
void setup() {
// put your setup code here, to run once:
// Serial.begin(9600);
lcd. begin(16, 2)
lcd.print("Arqui 2!");
for (int i = 0; i < SIZE; i ++ ) {
pinMode(leds [i], OUTPUT);
}
}
void loop()
// put your main code here, to run repeatedly:
KEY = keyboard. getKey () ;
if (KEY ! = NULL(KEY)) {
if (isNum ) {
int Num = KEY − 0
// Serial.print(num);
for (int i =0; i <SIZE; i ++) {
digitalWrite(leds[i], LOW);
}
lcd.setCursor(0, 1 );
lcd.println(num);
for(int i = 0 ; i < num; i ++){
digitalWrite(leds [i], HIGH);
}
} else {}
lcd.setCursor(0, 1);
lcd.println(KEY);
}
}
}
int isNum(char value){
return value != 'A' && value != 'B' && value != 'C' && value != 'D'
&& value != '*' && value != '#';
}