Phil Howard
e283d460d4
Make ws2812 and apa102 responsibly only for their own buffers
...
This fixes a bug where delete[] would be called on a bytearray buffer allocated by MicroPython on gc_heap.
2021-08-25 22:00:16 +01:00
Phil Howard
53429e0c6f
Do not pio_sm_unclaim for MicroPython
...
Adds an ifdef guard around `pio_sm_unclaim` that prevents it being called when MicroPython cleans up/finalizes classes.
For some reason this appeared to be causing a hardfault.
2021-08-25 16:06:51 +01:00
ZodiusInfuser
c8f90ea846
Changed default color order to GRB to match our strips
2021-08-23 17:18:34 +01:00
ZodiusInfuser
681edd255b
Changed default ws2812 freq to 800khz
2021-08-19 15:36:25 +01:00
ZodiusInfuser
823729dc24
Move apa and ws PIO into drivers so they can be easily used with more boards
2021-08-19 13:40:46 +01:00