Browse Source
Merge pull request #2 from zirafa/zirafa-clear-all
Add function to clear all pixels
main_ledos
Paul Stoffregen
6 years ago
No account linked to committer's email address
1 changed files with
3 additions and
0 deletions
-
WS2812Serial.h
|
|
|
|
|
|
|
|
drawBuffer[num+1] = green; |
|
|
drawBuffer[num+1] = green; |
|
|
drawBuffer[num+2] = red; |
|
|
drawBuffer[num+2] = red; |
|
|
} |
|
|
} |
|
|
|
|
|
void clear() { |
|
|
|
|
|
memset(drawBuffer, 0, numled * 3); |
|
|
|
|
|
} |
|
|
void show(); |
|
|
void show(); |
|
|
bool busy(); |
|
|
bool busy(); |
|
|
uint16_t numPixels() { |
|
|
uint16_t numPixels() { |