Control WS2811 with Puck

Posted on
  • Hi. Is it possible to do the WS2811 tutorials with a Puck? This page https://www.espruino.com/WS2811 says "the only condition is that the data wire is connected to an SPI MOSI port on the Espruino Board". Does the Puck have those?

    I tried connecting it up using a separate 5v power source, but nothing happened when I ran the code.

    Thanks,

    Jonathan

  • Hi,

    Yes, you can - but not with that code. The 1v92 firmware added a neopixel library: http://www.espruino.com/Reference#neopixel

    If you use the code in that link then you should be fine (note what the reference says about voltages though, as many neopixels will be glitchy running off 5v with 3v data).

    I've got to get around to updating the WS2811 documentation soon to make it use the neopixel library (which works on all platforms) - I'm afraid for now it's out of date

  • Great. I'll give that a go. Thanks.

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

Control WS2811 with Puck

Posted by Avatar for jjok @jjok

Actions