9

Coding chalenge.
So... Spent almost two hours to put this little device to work with the keypad.
The device is a arduino micro, special one that can work as mouse /keyboard or any kind of input on most devices (pc, Android phone,...)
The objective is to make a macro keypad to:
- Fast insert text
- Play sounds in games over voice chat.

Think of it like this, you start a new html file, press one key and all the base code is inserted.

So... Why so long? Tought was the hardware, tought the keypad could be set differently that most, code mistakes...

My error was all here, masked from the debugger by a if:

char keys[ROWS][COLS] = {
{'1','2','3','4'},
{'5','6','7','8'},
{'9','10','11','12'},
{'13','14','15','16'}
};

Easy to figure right? Only saw it after reading all the code twice.

Comments
  • 0
    nice. I loved arduino projects until reality hit me like a wave, I had a very tiny wallet lol
  • 0
    the two black buttons on the breadboard are for what? reset and power?
  • 1
    @ilechuks73 old remnants of version 0.1
  • 0
    Cool stuff. I thought about something like this in the past, but I'm a stickler for latency, and the Arduino PS/2 story seems to be either usb-> PS/2 (high latency) or write your own pwm.
  • 0
    Well we need a special arduino that can emulate a imput devide. Pro micro can.
    but fuckkk me if i can get it to work
  • 0
    After two hours looking why the arduino was connecting and disconnecting i found it. Protobord is fucked lol
    Now it works
  • 0
    Or not :p maybe the cables? Or it's fked... Oh well
    Time to order 4 more :p
  • 2
    Yeah something like '10' isn't going to make it as char. :-)

    What do you use for debouncing?
  • 0
    Was the cables :p
    Now must go back home for the rest...
    Print a box for it, connect to the software... And hope it works :p
Add Comment