Creación de repositorio, copia de pantalla

This commit is contained in:
adrigongv23 2025-12-04 09:00:43 +01:00
commit 6adc19faf6
71 changed files with 241507 additions and 0 deletions

55
include/led_strip_fl.hpp Normal file
View file

@ -0,0 +1,55 @@
// #ifndef LED_STRIP_HPP
// #define LED_STRIP_HPP
// #include <FastLED.h>
// #define PIN_WS2812B 6
// #define NUM_PIXELS 18
// #define STOP_CAR_WARNING 1
// #define RPM_MIN 6000
// #define RPM_MAX 11000
// class LedStrip{
// public:
// LedStrip(): _warning(0), _brightness(255) {}
// static void updateTask(void *arg) {
// LedStrip *ledStrip = static_cast<LedStrip*>(arg);
// ledStrip->update();
// vTaskDelete(NULL);
// }
// void update();
// void set_rpm(int rpm);
// void begin(){
// FastLED.addLeds<WS2812B, PIN_WS2812B, GRB>(_leds, NUM_PIXELS);
// FastLED.setBrightness(_brightness);
// }
// void set_brightness(uint8_t brightness) {
// _brightness = brightness;
// FastLED.setBrightness(_brightness);
// FastLED.show();
// }
// void set_mutex(SemaphoreHandle_t mutex){
// _mutex = mutex;
// }
// void display_warning(int warning);
// void display_rpm(int rpm);
// void display_startup();
// private:
// CRGB _leds[NUM_PIXELS];
// SemaphoreHandle_t _mutex;
// int _rpm;
// int _warning;
// int _brightness;
// };
// #endif