Giter VIP home page Giter VIP logo

ps2keymap's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ps2keymap's Issues

Examples not working

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.