techpaul / ps2keymap Goto Github PK
View Code? Open in Web Editor NEWArduino PS2 keyboard International Keyboard mapping from PS2KeyAdvanced and return as UTF-8
License: GNU Lesser General Public License v2.1
Arduino PS2 keyboard International Keyboard mapping from PS2KeyAdvanced and return as UTF-8
License: GNU Lesser General Public License v2.1
I have successfully connected my PS2 keyboard to an Arduino Nano. I get the correct keycodes in the serial monitor. However setting a keymap never works. In both of the provided examples, everything looks ok, except for changing the keymap.
In https://github.com/techpaul/PS2KeyMap/blob/master/examples/International/International.ino I have added the following code at line 146 :
Serial.println("Trying to switch to french");
found = keymap.selectMap( (char *)"FR" );
if (found) {
Serial.println("Success");
}
else {
Serial.println("Failed");
}
But the only things I get in the serial monitor are as follows :
PS2KeyMap plus PS2KeyAdvanced Libraries
International Keyboard Test:
Default is US layout, type a key to change layout
U for US G for GB/UK
D for DE F for FR
I for IT E for ES
All keys on keyboard echoed here
Value 44 mapped 64 - Status Bits 0 Code 64 ( d )
Value 46 mapped 66 - Status Bits 0 Code 66 ( f )
Trying to switch to french
Failed
Value 44 mapped 64 - Status Bits 0 Code 64 ( d )
Value 46 mapped 66 - Status Bits 0 Code 66 ( f )
Trying to switch to french
Failed
Would you have a hint as to what I might be doing wrong ?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.