Pin reference for Puck.js?

Posted on
  • Hi. I've just received my Pucks and they are indeed lovely. I'd like to try controlling a string of RGB LEDs but need to know which pin to use for SPI. Is there a pinout diagram for the Puck similar to the ones for other boards (e.g. the one available here http://www.espruino.com/WiFi)? Thanks.

    Andrew

  • With Espruino, practically all pins can do any type of communication. Soft-SPI on D0 or D1 in the row of the four pins that also have GND (and PWR) will get you there. Of course you are not able to drive the LED string with Puck's power...

    Whether soft SPI is good for you or not depends on the speed you need, because even with hard SPI it already needs some effort to have sufficient data feed.

  • The pin reference is on my list of things to do once they're all shipped - but as @allObjects says you can use pretty much any pin for anything. On Puck.js it's even better as hardware peripherals can work on any pins at all (unlike with the STM32-based Espruinos).

    Which lights were you thinking of using?

    Right now, WS2811/2 lights won't work with Puck.js - but again that is something that should be fixed in a firmware update soon.

    LED lights that accept data via SPI should work fine though, as the timing is less critical.

  • Aha, I see you've added a pinout diagram and explanations to http://www.espruino.com/Puck.js. Thanks very much.

    I was thinking about using a string of WS2801 LEDs I have lying around.

    Andrew

  • No problem - WS2801s should work perfectly - with software or hardware SPI. Please let us know how you get on - it'd be great to see!

  • /Puck.js Doc on Steroids... this qualifies for an early leave for the Holiday 2016 / 2017 break. - Enjoy your time off!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Pin reference for Puck.js?

Posted by Avatar for Andrewmk @Andrewmk

Actions