toblum/McLighting

Help!!! Control from the buttons

Vika1283 opened this issue · 2 comments

Please add a programme of control from the buttons

on/off GPIO5
brightness [-]GPIO6 [+]GPIO7
speed of effect [-]GPIO13 [+]GPIO15
switching of effects GPIO14
auto mode cycle GPIO12
Please help me, I want to do a garland for New Year very much

#include <WS2812FX.h>

#define LED_COUNT 587
#define LED_PIN 2

WS2812FX ws2812fx = WS2812FX(LED_COUNT, LED_PIN, NEO_RGB + NEO_KHZ800);

void setup() {
ws2812fx.init();
ws2812fx.setBrightness(255);
ws2812fx.setSpeed(200);
ws2812fx.setColor(0x007BFF);
ws2812fx.setMode(FX_MODE_STATIC);
ws2812fx.start();
}

void loop() {

ws2812fx.service();

}

Dear @Vika1283,

thank you for your proposal. I added this to the list of possible enhancements. Maybe you could try to find some help on this in the gitter chat. If there is some code I'd love to integrate this into McLIghting.

Regards
Tobias