Refactor HardwareLed class to use FastLED library and template for GPIO pin specification

This commit is contained in:
2025-10-04 12:03:59 +02:00
parent c65050cd44
commit c8b7882c2d
4 changed files with 89 additions and 47 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#include "hardware.pb.h"
// Demo for HardwareLed
HardwareLed led(2); // Assuming NeoPixel on pin 4 (D2 on ESP8266)
HardwareLed<2> led; // Assuming NeoPixel on pin 2 (D2 on ESP8266)
// Demo for HardwareRfid
HardwareRfid rfid(4, 5); // SS=D2 (GPIO4), RST=D1 (GPIO5)