Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Help!!! Control from the buttons #36

@Vika1283

Description

@Vika1283

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();

}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions