Page 1 of 1

APA102 - crash on esp8266

Posted: Tue Jan 22, 2019 4:07 pm
by hdsjulian
Hi,

i managed to hard crash my board. Here's what happened:

>>> import machine
>>> from apa102 import APA102
>>> data = machine.Pin(3)
>>> clock = machine.Pin(4)
>>> apa = APA102(clock, data, 8)

the board just goes dead. only a reboot can revive it.

In addition, i was smart enough to put this code into boot.py - which means neither could ampy overwrite it anymore nor could i connect to a micropython console (via screen /dev/tty.usbWHATEVEr 115200)

Any ideas what to do? I have an APA102 strip i'd _really_ like to use :)

Re: APA102 - crash on esp8266

Posted: Tue Jan 22, 2019 5:35 pm
by hdsjulian
Turns out, it stopped crashing when I used the right ports (i was somehow under the assumption that any data port could be used as an SPI port).