• Sat 2019.01.12

    Thank you @MaBe for responding. That code snippet would be what I would use with hardware SPI, if I could locate a suitable pin.

    Should I accept the build link (from #2) Line38 and Line60 as fact, then using the corresponding Pixl .py file Line35 and Line67 mirrors the same, so both devices %should% have one hardware SPI, . . . Correct?

    https://github.com/espruino/Espruino/blob/master/boards/PIXLJS.py#L35  and #L67

    However, when I check the reference pages, and roll-over the pin icons, I'm not seeing that hardware SPI at any pin.

    http://www.espruino.com/Pixl.js
    http://www.espruino.com/MDBT42Q



    Software SPI

    From @allObjects article link in #1 above and

    https://www.espruino.com/SPI

    the format is more like this, isn't it?

    var spi = new SPI();
    spi.setup({mosi:B5, miso:B4, sck:B3});
    spi.write([1,2,3,4])
    



    The other perplexing issue is whether software SPI is fast enough for Neopixels on these two devices.

About

Avatar for Robin @Robin started