Skip to content
Permalink
Browse files

allow app to provide it's own ledBuffer(s)

  • Loading branch information
boqs committed Nov 7, 2017
1 parent 93241ed commit c5a6cb14154b2ce182162d321ba5199e90b95b90
Showing with 4 additions and 2 deletions.
  1. +2 −1 src/monome.c
  2. +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
/*

0 comments on commit c5a6cb1

Please sign in to comment.