Hi there !
-> as you suggested, I'll start another thread for half-dead Pico ;)
-> still, the LEDs are indeed led brightly, the contacts are clean, and I put some tape on the backside of the USB connector since part of it was a little scratched ( even if it shouldn't impact ? .. ), and it's very unlikely that I powered this from something other than a laptop USB port at 500mA ..
I had some luck/fun using USBKeyboard.js on an Espruino WiFi, only to find that the mapping is for us/qwerty ;)
-> hence I wrote the following to help toggling between the two: https://github.com/stephaneAG/serialToWebsockets/blob/master/USBKeyboard.js
.. and then realized that I now need to map dot, colon & cie as well ..
.. and also add support for left & right parenthesis as well as '#' ( I plan to use the keyboard feature combined with a TCS34725 color sensor to type rgb or hex color ;P ) ..
In short, the following seems to be useful on a system running Ubuntu:
xinput // to get the ID of our device that acts as a keyboard
setxkbmap -device 13 -layout us // to set its layout
The sad part is:
it has to be run after each time the keyboard is "connected"
it won't work for other devices / mappings
So right now, I'm wondering what'd be the most practical approach to get the most common layouts selectable within the Espruino USBKeyboard.js module ..
I guess I'll investigate the subject right after finishing up the po with the TCS34725 ;)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi there !
-> as you suggested, I'll start another thread for half-dead Pico ;)
-> still, the LEDs are indeed led brightly, the contacts are clean, and I put some tape on the backside of the USB connector since part of it was a little scratched ( even if it shouldn't impact ? .. ), and it's very unlikely that I powered this from something other than a laptop USB port at 500mA ..
I had some luck/fun using USBKeyboard.js on an Espruino WiFi, only to find that the mapping is for us/qwerty ;)
-> hence I wrote the following to help toggling between the two: https://github.com/stephaneAG/serialToWebsockets/blob/master/USBKeyboard.js
.. and then realized that I now need to map dot, colon & cie as well ..
.. and also add support for left & right parenthesis as well as '#' ( I plan to use the keyboard feature combined with a TCS34725 color sensor to type rgb or hex color ;P ) ..
In short, the following seems to be useful on a system running Ubuntu:
The sad part is:
So right now, I'm wondering what'd be the most practical approach to get the most common layouts selectable within the Espruino USBKeyboard.js module ..
I guess I'll investigate the subject right after finishing up the po with the TCS34725 ;)