VladimirP1 / esp-gyrologger

GNU Lesser General Public License v2.1
78 stars 10 forks source link

control rgb led? #3

Closed gretel closed 2 years ago

gretel commented 2 years ago

the m5stamp boards have a SK6812 led - the form factor is pretty great for the logging application. am not good with c++.. found a library at least: https://github.com/UncleRus/esp-idf-lib/tree/4ca15c4a1495a65def31ed83ef905fba67dde18f/components/led_strip 😄

VladimirP1 commented 2 years ago

Ordered some ws2812b, will see if this works

B-nutze-RR commented 2 years ago

That's a great idea @gretel✌ , i used super tiny red (but bright) LEDs on the Stamp-C3/C3U so far, and it's kind of hard sometimes to identify if it's breathing or pulsing… A simple red for "ready" and green for "logging active" would be great - i guess it would be nice to control brightness using the webUI or just set it fix to 10-30%.

VladimirP1 commented 2 years ago

Here's the official esp-idf example code for ws2812 https://github.com/espressif/esp-idf/tree/master/examples/peripherals/rmt/led_strip

gretel commented 2 years ago

@B-nutze-RR i'm trying to have a segment of https://de.aliexpress.com/item/4000154483882.html in the meantime - it's 5V and bright.

VladimirP1 commented 2 years ago

vid

VladimirP1 commented 2 years ago

code is in master

gretel commented 2 years ago

code is in master

awesome!

B-nutze-RR commented 2 years ago

Very Nice 💪

gretel commented 2 years ago

looks and works great using a m5stamp c3u, pins are as shown:

Screenshot 2022-08-04 at 20 28 26