Avatar for BrendanDawes

BrendanDawes

Member since Nov 2017 • Last active Nov 2017
  • 2 conversations
  • 5 comments

Most recent activity

  • in General
    Avatar for BrendanDawes

    Thanks Gordon —I should have taken a look at the trouble shooting first!

  • in General
    Avatar for BrendanDawes

    OK.

    I hadn't switched over the tiny SMD switch across on the board to switch it to i2c mode.

    Works now!

    I'll get my coat.

  • in General
    Avatar for BrendanDawes

    Whenever I try and query the nfc object it just hangs.

    I'm using Espruino Wifi and have my setup code like this:

     I2C2.setup({scl:B10, sda:B3});
     var nfc = require("PN532").connect(I2C2);
    

    That doesn't make anything hang.

    But if I then try this

    console.log(nfc.getVersion());
    
    

    It just hangs. Doesn't matter what method I call on the nfc class, it just hangs straight away.

    I've tried i2c1 as well and I seem the same behaviour.

    Any ideas?

  • in General
    Avatar for BrendanDawes

    Managed to get to the bottom of this.

    If I plug the board into a USB power adapter (not a USB port on my Mac) it all boots up and works fine. If i try and power it up from a USB port on my mac it hangs when it gets to the http part. My guess is it's trying to communicate through the USB port. Maybe something to do with me sending console.log messages?

  • in General
    Avatar for BrendanDawes

    That should be boot up.

    Loving my first adventures with the Espruinio Wifi.

    However I'm having an issue getting the http module to work from flashed memory when not using the web ide.

    When I send code across (using send and save) everything works fine — http module fetches data from the net just great, displaying data on an oled screen.

    Then when I unplug the board and and plug it back in, powering the board, the start up sequence I've created all works, telling me on the old screen it's connected to wifi all fine, but when it then tries to access anything via the http module it just stalls. I've tried it with different urls and they all behave the same - work great via the web ide, but not on normal boot up.

    Any ideas?

Actions