Avatar for Gordon


Member since Sep 2013 • Last active Oct 2018

Most recent activity

  • in Other Boards
    Avatar for Gordon


    There shouldn't be an issue with intervals at all - you can do them years in advance.

    If you connect via Bluetooth at a later point, does it then start working again?

    You could try:

    var log = "";
    LoopbackB.on('data',function(d) { log = (log+d).substr(0,1000); });

    And then you can connect at some point later on and do print(log) - it'll then show you any messages that were written to the console while you were disconnected. It might give you a hint what's going on?

    You can also use software serial on Espruino v2:

    var s = new Serial();
    LoopbackB.on('data',function(d) {s.write(d); });

    It's still a bit beta, but might be good enough for you to get realtime info on what's going on despite only having one serial port (which I guess you're using).

  • in Other Boards
    Avatar for Gordon

    You might want to take a look at http://www.espruino.com/Troubleshooting+­BLE#my-code-works-when-i-m-connected-via­-bluetooth-but-stops-when-i-disconnect

    Bluetooth.setConsole(true) in onInit should fix it for you though.

  • in Porting to new Devices
    Avatar for Gordon

    I'd have said changing system_stm32f4xx.c is what you need - not sure why it wouldn't be taking effect.

    You could have a play with http://www.espruino.com/Reference#l_E_se­tClock - it'll allow you to play with prescalers on the fly so at least you can test and see if it's doing the right thing

  • in Projects
    Avatar for Gordon

    Wow, that's a lot of work! Nice idea though being able to get extra components inside the case.

    Interesting thought about adding another set of holes. It'd be pretty tight in most places, but A0..A5 are an option as you say. Perhaps just bare pads would be enough for most things?

    I'm just about to get a new batch of Pixls assembled (all the PCBs are already made so it's too late for any changes) - do you think it's worth me getting a few made without the sockets soldered on?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Gordon

    Wow - that's great!

    Just a few random thoughts...

    • Espruino keeps track of the area of the display that's modified with g.getModified() - so potentially you could send just the area of the screen that changed to make it faster?
    • Espruino v2 has the 'heatshrink' library for LZSS compression which you could use to get the size down. I don't think there's a JS implementation (looks like there may be a TypeScript decompressor), but I guess one could be built with emscripten.

    I'm totally up for increasing the MTU size in Espruino as well - just have to figure out how to do it :)

  • Avatar for Gordon

    Gordon, with Pixl.setContrast did you manage to make it fully perfectly visible again, or only somewhat?

    I didn't try. Honestly at some point you're just going to have to buy one and figure this stuff out yourself :)

    setContrast itself may not do it, but it is possible to use Pixl.lcdw to set another value which is to do with the drive voltage, and that will almost certainly do it.

  • Avatar for Gordon

    I'm not near a Pixl at the moment, but anyone who wants to try this can use http://www.espruino.com/Image+Converter

    Even if that doesn't work, a smaller QR code containing less data (<=32 pixels so you can double it up) would be fine I'm sure.

  • in ESP32
    Avatar for Gordon

    I think you maybe tried to link it - but just wanted to add that the reference at http://www.espruino.com/Reference usually tells you what is and isn't available on different boards. If it doesn't for a board then that's something I could fix if I know about it.