Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
allow app to provide it's own ledBuffer(s)
- Loading branch information
Showing
with
4 additions
and
2 deletions.
-
+2
−1
src/monome.c
-
+2
−1
src/monome.h
|
|
@@ -58,7 +58,8 @@ static void read_serial_dummy(void) { return; } |
|
|
u8 monomeFrameDirty = 0; |
|
|
// a buffer big enough to hold all l data for 256 or arc4 |
|
|
// each led gets a full byte |
|
|
u8 monomeLedBuffer[MONOME_MAX_LED_BYTES]; |
|
|
u8 dummyLedBuffer[MONOME_MAX_LED_BYTES]; |
|
|
u8 *monomeLedBuffer = dummyLedBuffer; |
|
|
|
|
|
// global pointers to send functions. |
|
|
read_serial_t monome_read_serial = &read_serial_dummy; |
|
|
|
|
|
@@ -59,7 +59,8 @@ extern u8 monomeFrameDirty; |
|
|
|
|
|
// a buffer big enough to hold all led data for 256 or arc4 |
|
|
// each led gets a full byte |
|
|
extern u8 monomeLedBuffer[MONOME_MAX_LED_BYTES]; |
|
|
extern u8 dummyLedBuffer[MONOME_MAX_LED_BYTES]; |
|
|
extern u8 *monomeLedBuffer; |
|
|
|
|
|
//---- function types |
|
|
/* |
|
|
|