Avatar for tom.gidden

tom.gidden

Member since Jan 2014 • Last active May 2017
  • 9 conversations
  • 54 comments

Most recent activity

  • in The Place for Patreon Patrons
    Avatar for tom.gidden

    I'll give it another go, now that I've got ESP32 functioning for what I want... the micro:bits have the benefit of battery connectors. It's just a real shame they went with the 16kB variant rather than the 32kB.

    "Modules as functions" gave me trouble at the time, so I cut-and-pasted a very stripped-down DS18B20.js into the top of the source code, and minimised the code manually (still using Esprima et al., though)

    I think for a restricted platform like micro:bit, almost all modules are going to be a problem as you don't want to compromise the capabilities of those modules for more capable boards, but not maintain two entirely separate trees.

    Regardless, _minimal confuses with .min. Maybe, _basic? _barebones?

  • in General
    Avatar for tom.gidden

    NPM, installed last night. I made the obvious realisation they were built-in shortly after posting, but locked the thread by accident. This is what happens when I try to code late at night while on heavy medication! :)

    It's quite conceivable it'll get confused anyway; I'm using a no-name dev carrier board... a sweet spring-loaded fixture from ebay for programming bare ESP32 modules without soldering.

    Thanks!

  • in General
    Avatar for tom.gidden

    Admittedly, I'm not playing by the rules here -- running CLI espruino on a manually-flashed bare ESP32 -- but right now I'm getting:

    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/http.min­.js
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/Wifi.min­.js
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/http.js
    Module http not found
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/Wifi.js
    Module Wifi not found
    

    Shouldn't these files exist? Anyone else getting this? Have I missed something obvious?

    Cheers,
    Tom

  • in The Place for Patreon Patrons
    Avatar for tom.gidden

    I've found it very hard to get any useful code running on an Espruino micro:bit, once a module or two is required. The one thing I really worked on was advertising temperatures from some DS18B20 probe on BLE. Absolutely couldn't get it to fit, even with manual stripping and minification of the DS18B20 module.

    Of course I could just use one of my precious Pucks, but it'd be a waste... they're overkill and I've got three or four spare micro:bits I'm not using. However, I'm just going to use a few bare ESP32 modules instead.

  • in Puck.js
    Avatar for tom.gidden

    Duh. Yes, looks like you've told me to do it before...

    http://forum.espruino.com/conversations/­302573/#comment13553381

    Absolutely no memory of that. :) Moral: don't participate in technical discussions on the internet at two in the morning while heavily medicated.

  • in Puck.js
    Avatar for tom.gidden

    FYI, just for the sake of another data point, I just had the same thing.

    I've been using a simple BLE HID controlling script on 1v91.715 for some time. I just flashed it to 1v92, and had the full-on RGB flash and failure to connect. So, DFU back to 1v91, run the erasePage bit and then back up to 1v92... sorted.

  • in Puck.js
    Avatar for tom.gidden

    It looks to me like ble_hid_keyboard and ble_hid_controls might be mutually-exclusive. Is it feasible to send commands in both "mechanisms" without a rewrite of those modules?

    In the Adafruit Bluefruit LE services AT command API, I seem to remember it's possible to send both AT+BLEHIDCONTROLKEY and AT+BLEKEYBOARDCODE in the same "session" (so to speak). And, a typical Bluetooth keyboard with media keys can obviously do both media controls and keyboard presses simultaneously.

    I want to be able to send:

    • ble_hid_keyboard.KEY.RIGHT on single click;
    • ble_hid_keyboard.KEY.LEFT on double click;
    • and a control key (specifically control 0xb8 of the 0x0c Consumer Page, described on pg.77 of the HID Usage Tables PDF) on triple click.

    0xb8 is the "Show Keyboard / Eject" key, which should reveal the keyboard on iOS; if you connect even a one-button keyboard in iOS, it assumes you don't want the on-screen keyboard. I don't know of a way to tell iOS that it's a limited "auxiliary" keyboard, so without that, offering the Eject key is a workaround.

    I assume this is part of the HID report definition -- writing a comprehensive definition encompassing both -- but it's a bit beyond me. I'm wondering if @Gordon might know how to create a unified report definition capable of both, having written the two existing HID modules.

  • in Puck.js
    Avatar for tom.gidden

    (Incidentally, I've just written up the project)

Actions