瀏覽代碼
Merge pull request #2 from zirafa/zirafa-clear-all
Add function to clear all pixels
main_ledos
Paul Stoffregen
6 年之前
No account linked to committer's email address
共有
1 個文件被更改,包括
3 次插入 和
0 次删除
-
WS2812Serial.h
|
|
@@ -55,6 +55,9 @@ public: |
|
|
|
drawBuffer[num+1] = green; |
|
|
|
drawBuffer[num+2] = red; |
|
|
|
} |
|
|
|
void clear() { |
|
|
|
memset(drawBuffer, 0, numled * 3); |
|
|
|
} |
|
|
|
void show(); |
|
|
|
bool busy(); |
|
|
|
uint16_t numPixels() { |