Half of firmware working, I need write Shift / FN support. , is incredibly simple.
I regret that I used such a powerful processor.
Sketch uses 11808 bytes (4%) of program storage space. Maximum is 253952 bytes.
#include <Keypad.h>
#include "Keyboard.h"
const byte ROWS = 7; //four rows
const byte COLS = 8; //four columns
char Keys[ROWS][COLS] = {
{'`','1','2','3','4','5','6','X'},
{KEY_ESC,'q','w','e','r','t','y',';'},
{'[','a','s','d','f','g','h','*'},
{']','z','x','c','v','b','n','-'},
{'7','8','9','0',KEY_DOWN_ARROW,KEY_RIGHT_ARROW,KEY_LEFT_ARROW,KEY_UP_ARROW},
{'u','i','o','p','.','/',' ','='},
{'j','k','l',KEY_BACKSPACE,'m',92,KEY_RETURN,','}
};
byte rowPins[ROWS] = {15, 18, 16, 19,28,31,30};
byte colPins[COLS] = {3, 4, 5, 6,7,8,9,14};
Keypad customKeypad = Keypad( makeKeymap(Keys), rowPins, colPins, ROWS, COLS);
void setup(){
Keyboard.begin();
}
void loop(){
char customKey = customKeypad.getKey();
if (customKey){
Keyboard.press(customKey);
delay(100);
Keyboard.releaseAll();
}
}
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
I thing yes, of course you need design new board
Are you sure? yes | no
great, I’ve already tried to compiled it with leonardo and it only take around 50% memory. Already load your sch and brd file on the pcb tools and try to modify it. Thanks for sharing
Are you sure? yes | no
is it possible to use atmega32u4 with this firmware?
Are you sure? yes | no
For inspiration here is atmega32u4 project https://medium.com/@monkeytypewritr/building-your-own-keyboard-from-scratch-bd0638c40850
Are you sure? yes | no