SHA2017-badge / Firmware

ESP32 firmware for the SHA2017 badge
https://wiki.sha2017.org/w/Badge
Other
83 stars 36 forks source link

Make sure the WS2812_DATA is in high-impedance mode before the LED power is switched off #59

Closed annejan closed 7 years ago

annejan commented 7 years ago

It might break 📟

basvs commented 7 years ago

on disabling the power to the ws2812/sk6812, i can disable the spi and configure the gpio pin as input without pull-up or pull-down. i think that qualifies as high-impedance.

should i do this right before or right after disabling power?

Kartoffel commented 7 years ago

Probably before disabling power, otherwise the sk6812's input capacitance can drain into the ESP and damage its I/O

basvs commented 7 years ago

Oh, and can someone with SK6812RGBW leds test the leds demo? It should start with these 6 leds: red, green, blue, white, black, black..

annejan commented 7 years ago

I'll test when I get home..

annejan commented 7 years ago

And . . it's Green, Red, Blue, White, Black, Black

basvs commented 7 years ago

Added pull-request #62

basvs commented 7 years ago

sprite_tm: is this the best way to put a GPIO pin in high-impedance?

Spritetm commented 7 years ago

There isn't really a 'the best way'; this one should do just fine.