First draft of neopixel

This commit is contained in:
Michal Moskal
2016-04-03 17:38:50 -07:00
parent 02c41b59bd
commit 8a124812b6
5 changed files with 267 additions and 0 deletions

View File

@ -12,6 +12,11 @@ namespace BufferMethods {
ManagedBuffer(buf).setByte(off, v);
}
//%
uint8_t *getBytes(Buffer buf) {
return buf->payload;
}
/** Returns the length of a Buffer object. */
//% property
int length(Buffer s) {