APA102 - crash on esp8266

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
hdsjulian
Posts: 31
Joined: Mon Dec 03, 2018 8:29 pm

APA102 - crash on esp8266

Post by hdsjulian » Tue Jan 22, 2019 4:07 pm

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 :)

hdsjulian
Posts: 31
Joined: Mon Dec 03, 2018 8:29 pm

Re: APA102 - crash on esp8266

Post by hdsjulian » Tue Jan 22, 2019 5:35 pm

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).

Post Reply