This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
WS2812Serial
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Merge pull request
#2
from zirafa/zirafa-clear-all
Add function to clear all pixels
main_ledos
Paul Stoffregen
6 years ago
parent
1c8ddcf812
b3af52d517
commit
cddcda8970
No account linked to committer's email address
1 changed files
with
3 additions
and
0 deletions
Split View
Show Diff Stats
+3
-0
WS2812Serial.h
+ 3
- 0
WS2812Serial.h
View File
@@ -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() {
Write
Preview
Loading…
Cancel
Save