Refactor HardwareLed class to use FastLED library and template for GPIO pin specification
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user