Most recent activity
-
-
- 3 comments
- 73 views
-
I just used that url https://www.espruino.com/ide/?emulator# and it seems that I can't "connect" to the bangle emulator anymore. Anything changed?
-
- 12 comments
- 1,256 views
-
In addition to USB (serial, right?) and the possibly to add a WiFi module, I would love to have
- An accelerometer/gyro/compass/IMU (turn ON screen when LCD facing up, turn it down otherwise, in-vehicle datalogger, mobile-robotics use-cases,...)
- Just because the graphical library is very complete, maybe a touchscreen? ;-)
- Maybe support for multiple BLE communications at the same time if a Nordic Softdevice is available for the NRF52840?
- One or two 3-pin servo headers (I was still thinking of the mobile robotics use-cases ...)
- a microphone (AI, basic speech recognition)
- secure memory (if not already in the NRF) for things like password keepers and so on
That's all I think about now.
- An accelerometer/gyro/compass/IMU (turn ON screen when LCD facing up, turn it down otherwise, in-vehicle datalogger, mobile-robotics use-cases,...)
-
-
- 8 comments
- 500 views
-
I would be interested in looking into code for that if its open.
Well the code is very basic. It implements UP, DOWN, RIGHT, LEFT, BACKSPACE and ENTER keys.
At each key event, the key bufferkeys[]
is updated and sent to the host (in my case an android phone running a gameboy emulator). It works well even if I noticed a small delay between the key press and the actual response in the game. I don't know if it comes from the BLE or the emulator.var kb=require("ble_hid_keyboard"); BTN_UP=D3; BTN_DN=D24; BTN_LEFT=D2; BTN_RIGHT=D22; BTN_SEL=D4; BTN_START=D5; BTN_B=D28; BTN_A=D25; var keys=[0,0,0,0,0,0,0,0]; function onInit(){ NRF.setServices(undefined, { hid : kb.report }); setWatch("keys[2]=kb.KEY.UP;NRF.sendHIDReport(keys);", BTN_UP, {edge:"falling",repeat:true,debounce:50}); setWatch("keys[2]=0;NRF.sendHIDReport(keys);", BTN_UP, {edge:"rising",repeat:true,debounce:50}); setWatch("keys[3]=kb.KEY.DOWN;NRF.sendHIDReport(keys);", BTN_DN, {edge:"falling",repeat:true,debounce:50}); setWatch("keys[3]=0;NRF.sendHIDReport(keys);", BTN_DN, {edge:"rising",repeat:true,debounce:50}); setWatch("keys[4]=kb.KEY.LEFT;NRF.sendHIDReport(keys);", BTN_LEFT, {edge:"falling",repeat:true,debounce:50}); setWatch("keys[4]=0;NRF.sendHIDReport(keys);", BTN_LEFT, {edge:"rising",repeat:true,debounce:50}); setWatch("keys[5]=kb.KEY.RIGHT;NRF.sendHIDReport(keys);", BTN_RIGHT, {edge:"falling",repeat:true,debounce:50}); setWatch("keys[5]=0;NRF.sendHIDReport(keys);", BTN_RIGHT, {edge:"rising",repeat:true,debounce:50}); setWatch("keys[6]=kb.KEY.BACKSPACE;NRF.sendHIDReport(keys);", BTN_B, {edge:"falling",repeat:true,debounce:50}); setWatch("keys[6]=0;NRF.sendHIDReport(keys);", BTN_B, {edge:"rising",repeat:true,debounce:50}); setWatch("keys[7]=kb.KEY.ENTER;NRF.sendHIDReport(keys);", BTN_A, {edge:"falling",repeat:true,debounce:50}); setWatch("keys[7]=0;NRF.sendHIDReport(keys);", BTN_A, {edge:"rising",repeat:true,debounce:50}); }
-
Is the idea to build a joystick with espruino or be able to talk to the hacked Joy-Con like device?
Well I own a Nintendo Switch for a few days now and even if the little Joy-Con are cute, I would have loved to build a replica a little bit bigger and maybe with small improvements, like a special button for holding stuff behind a kart (for Mario Kart as you imagine) instead of keeping the standard button pressed for as long as you want.
Well, at the end those modifications are only a pretext to build something new with Espruino ;-)I did my own Espruino game controller a few months ago, which was basically a BLE HID keyboard with specific buttons. Here the task is a bit more complicated because it involves reverse-engineering a few things such as the pairing process but I am sure that being able to provide Espruino community with some game controllers examples will be very positive. I am a casual gamer, but I am confident that many of us would love to benefit from Espruino in the gaming area.
By the way, I really love the bolidJS project !
Developping IoT @ http://www.novaccess.ch , Switzerland
80% Hardware
15% Firmware
5%Software
Linkedin: linkedin.com/in/jprey
Twitter: https://twitter.com/yerpj