Refactoring completed: NeoPixel implementation in C instead of js
This commit is contained in:
@@ -23,6 +23,7 @@ typedef struct LEDState_t {
|
||||
} LEDState;
|
||||
|
||||
typedef struct LEDStateEngine_t {
|
||||
uint8_t pin;
|
||||
uint8_t numberOfLeds;
|
||||
LEDState ledState[MAX_LEDS];
|
||||
char *comment;
|
||||
@@ -31,7 +32,7 @@ typedef struct LEDStateEngine_t {
|
||||
extern int getTicks(void);
|
||||
|
||||
/* LEDStateEngine */
|
||||
extern void LEDStateEngine_init(int numberOfLeds);
|
||||
extern void LEDStateEngine_init(int ledPin, int numberOfLeds);
|
||||
extern void LEDStateEngine_addComment(char *comment);
|
||||
|
||||
extern LEDState *LEDStateEngine_getLedState(int n);
|
||||
|
||||
Reference in New Issue
Block a user