Avatar for Gordon

Gordon

Member since Sep 2013 • Last active Jan 2020

Most recent activity

    • 8 comments
    • 112 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for Gordon

    I'm afraid it happens on all of them - the extra power draw just drops the voltage enough to dim the backlight. At 3v it's not much above the voltage needed for the LED so any dip in voltage is very apparent.

    A decently big capacitor on the 3.3v line would help but at the end of the day if the calculation goes on for more than a small fraction of a second you'll still see some dimming.

    To be honest using the backlight on CR2032 won't be amazing - it's not as bright and the increased power draw will flatten the battery a lot more quickly than might happen otherwise.

  • in Interfacing
    Avatar for Gordon

    It's still got the level converter - this one looks fine https://www.sparkfun.com/products/544

    Or for SD: https://www.sparkfun.com/products/12941

  • in Bangle.js
    Avatar for Gordon

    Does it make sense to have another button to load the contents of a existing file (an app) directly to RAM?

    You mean as if you clicked 'open file' then 'upload' in the IDE?

    I'm not really sure. It's only two button presses. Bringing up the Storage menu then pressing something else would probably be significantly more hassle? I guess there could be a drop-down by the 'open' button that allowed you to 'open and upload' but maybe it's just extra complexity?

  • in Interfacing
    Avatar for Gordon

    Hi Matt,

    Yes, that should be ok, however ideally you'd find one without the level converter on it. Normal Arduinos are 5v but the SD is 3.3v so you need conversion logic. However since Espruinos are 3.3v you don't need anything.

    It's worth checking out: http://www.espruino.com/File+IO#wiring

    A quick hack is just to use a simple micro SD -> SD adaptor and just to wire to the pins - you probably already have one kicking around somewhere!

  • in Pico / Wifi / Original Espruino
    Avatar for Gordon

    Great, thanks for paring that right back! I'll look into it. It's possible the command gets executed before the ESP8266 has booted up completely.

    edit: Just a quick note but it actually seems to work almost all the time here with setTimeout removed. Maybe it was some strange interaction with the BME280

  • in Bangle.js
    Avatar for Gordon

    Right, that should be fixed now. Also image uploads work nicely. You can now upload a full 240x240 16 bit image to Storage and render it with just:

    g.drawImage(require("Storage").read("bg"­))
    
  • in Bangle.js
    Avatar for Gordon

    Ok, thanks - and thanks for the attachment for testing! I'll look into it - I think it's to do with how the API I use for loading files loads them as strings

  • in Bangle.js
    Avatar for Gordon

    Please can you try removing all apps and reinstalling from https://banglejs.com/apps/ ?

    The newer versions had some big changes. I think the one that caused a problem was that Settings (and the app manager) used Bangle.menu which I've had deprecated for a while and which I finally removed.

  • in Bangle.js
    Avatar for Gordon

    Hi!

    Just to let you know I've been adding a menu to allow you to list files in Espruino's storage, view, download and upload them.

    Should work with Bluetooth and Serial.

    You can try it out on the GitHub-hosted Web IDE (it's not live on the proper one yet):

    https://espruino.github.io/EspruinoWebID­E/

    Just click the star in the bottom-middle of the window. If you don't get one, try a hard-reload, and if you've used the GitHub IDE before and it's not working now, try going into chrome devtools -> application -> unregister service worker and try another hard reload.

    I'd be interested to see what you think. Hopefully image converter tools will come soon.

Actions