Hi everyone,
I'm asking for some much needed help controlling a 6x5 keypad w/ modifiers (shift key, backspace, space, enter...etc). I have built a circuit that allows use for only one pin on the Arduino Uno. I have all 30 keys responding to key press but I cannot activate the keypad modifiers. I especially need the shift key to function because this keypad has dual sequence key presses (some of the key presses have letters and numbers). I also need to latch the letters and numbers in memory. Can anyone help?
My code is as follows:
#define KEY_UP_ARROW, 0xDA
#define KEY_DOWN_ARROW, 0xD9
#define KEY_LEFT_SHIFT, 0x81
#define KEY_BACKSPACE, 0x82
#define KEY_SPACE, 0x20
#include <Keyboard.h>
char* keypressed;
int keyboardPin = A0
int keyboardValue;
int keypressedreleaseALL();
void setup(){
Serial.begin(9600);
deley (200);
}
void loop() {
keyboardValue = analogRead(A0);
while(keyboardValue<25) {
keyboardValue = analogRead(A0);
delay(50);
if ((keyboardValue <215) && (keyboardValue >212)) (keypressed = "A"); this is start of code
if((keyboardValue <565) && (keyboardValue >563)) (keypressed = "KEY_LEFT_SHIFT"); end of code
Serial.println (keypressed);
delay(1000);
}