Close

firmware is unbelievable simple

A project log for mini (Pi)QWERTY USB keyboard

USB hid keyboard ... etc. for Raspberry PI

bobriciusbobricius 06/19/2018 at 18:514 Comments

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

bobricius wrote 06/20/2018 at 22:13 point

I thing yes,  of course you need design new board

  Are you sure? yes | no

Hendra Kusumah wrote 06/21/2018 at 02:32 point

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

Hendra Kusumah wrote 06/20/2018 at 16:07 point

is it possible to use atmega32u4 with this firmware?

  Are you sure? yes | no

bobricius wrote 06/21/2018 at 11:13 point

  Are you sure? yes | no