VladimirP1 / esp-gyrologger

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

control rgb led? #3

Closed gretel closed 1 year ago

gretel commented 1 year 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 1 year ago

Ordered some ws2812b, will see if this works

B-nutze-RR commented 1 year 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 1 year 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 1 year 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 1 year ago

vid

VladimirP1 commented 1 year ago

code is in master

gretel commented 1 year ago

code is in master

awesome!

B-nutze-RR commented 1 year ago

Very Nice 💪

gretel commented 1 year ago

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

Screenshot 2022-08-04 at 20 28 26