MSOM and Neopixels

I notice that the neopixel library, which was updated for the P2 / Photon 2 doesn’t work for the MSOM. If I recall, the RTL8721DM has slow GPIO pins, so the library was written to utilize the SPI/SPI1 MOSI interface. I am not sure how much different the RTL8722DM is, but is it possible to modify the neopixel library for the MSOM?

It should only be a platform ID check issue. The code that works on the P2/Photon 2 should work on the M-SoM using the SPI peripheral to do NeoPixel.

@rickkas7 Thank you. We will update the Platform ID to be both 32 and 35. My assistant is working on it from home, I think he had done this, but I will validate.

@rickkas7 Thank you. That fixed it. As you might recall, I teach at Central New Mexico Community College, as I have come across libraries that haven’t worked, I’m modified them and added “_CNM” to the file name.

In case anyone needs neopixel to work with MSOM/Muon until the neopixel.h is updated, they can install

$ particle library search Neopixel_CNM

Found 1 library matching Neopixel_CNM
Neopixel_CNM 1.0.0 [mine] 0 Modified neopixel.h library to allow the MSOM (Platform ID 35)

3 Likes