mirror of
https://github.com/zzzzDev4/IAS-Better-Tea.git
synced 2025-04-21 07:31:20 +02:00
24 lines
No EOL
344 B
C++
24 lines
No EOL
344 B
C++
#pragma once
|
|
#include <FastLED.h>
|
|
|
|
#define PIXELCOUNT 15
|
|
|
|
|
|
class SmartStrip
|
|
{
|
|
public:
|
|
|
|
void init();
|
|
|
|
void reset();
|
|
|
|
void setGreen(int led);
|
|
|
|
void animateBottomToTop(int r, int g, int b);
|
|
|
|
void progressBar(int min, int max, int val);
|
|
|
|
private:
|
|
CRGB leds[PIXELCOUNT]; // Define the array of leds
|
|
int lastLevel = -1;
|
|
}; |