Avatar for Bennr

Bennr

Member since Apr 2015 • Last active Mar 2019
  • 7 conversations
  • 38 comments

Most recent activity

  • in Other Boards
    Avatar for Bennr

    Thanks for the info @Robin I'll have a look at that to try and further my understanding.

    Thanks for the code @Gordon and for the tip about finding the underlying code. I find it fun to dig about and try and understand these things, even if it usually comes to nothing! There is a lot of information about the chip here http://infocenter.nordicsemi.com/pdf/nRF­52832_PS_v1.1.pdf which looks pretty exciting, so I'm going to mess about with it using the js interface and see what happens.

  • started
    • 6 comments
    • 105 views
  • in Other Boards
    Avatar for Bennr

    Thanks for the info. I'm messing about using the examples, but I don't really know what I'm doing to be honest. I keep peek32()ign at everything I can think of, but the returned values stay the same. I don't have ~much~ any experience with low level stuff.

    Is the code that does this on the Puck available somewhere for me to look at to try and understand it, or will that not really help?

  • in Other Boards
    Avatar for Bennr

    Hi, not sure if this is the right place to post about this board. I have got one and think it's great and am looking forward to exploring it more.

    I'm trying to figure out how to access the capacitive touch sensors but can't figure it out. I have looked at the boards/smartibot.py file and can't see anything mentioning about capacitive sensors like in the puck.js file. I am keen to explore the board and somehow figure this sort of stuff out but can't really get my head around it!

    Any guidance would be appreciated.

  • in Pico / Wifi / Original Espruino
    Avatar for Bennr

    Ah nice, yes that would be good. I was thinking of putting a little script on my server to handle the api lookups and return all the data in one go so I wouldn't have to do the https -> http proxy either.

    I've not really done anything with promises but it looks like a good place to start

    Error handling ommited for keeping it simple.. but you should take care of it :)

    Of course! ;-)

  • in Pico / Wifi / Original Espruino
    Avatar for Bennr

    Ah fantastic! Thank you for replying. I wondered if it might be something to do with the forEach loop. It did start working again at random points. I'll try that out and let you know how it goes.

  • in Pico / Wifi / Original Espruino
    Avatar for Bennr

    Hello all,

    Firstly, I have searched the error message I'm getting and haven't been able to apply it to my case, so here goes...

    I have built a little OLED Bitcoin price display thing and am connecting to cryptonator (via mrtimcakes https to http proxy) to get some prices. It all runs fine but after a few minutes I get the repeated error Uncaught InternalError: Unable to create socket.

    I poll the api once every 30 seconds and call a function to deal with the data. From what I understand this is a memory problem, but I'm at a loss as to how to progress. Code is here https://gist.github.com/gomako/bdac39e96­16709aa952ac04d0d5de019 and looks a bit like dog vomit, so excuse me for that!

  • started
    • 34 comments
    • 2,282 views
Actions