duff, I added the OctoWS2811 library and now I get an error when compiliing. The error is SerialEvent.cpp:207: multiple definition of `dma_ch3_isr'
Since both libraries are using DMA is it possible to use them at the same time?
#include <OctoWS2811.h>
#include <SerialEvent.h>
//-------------Beginning OctoWS2811---------------------
const int ledsPerStrip = 320;
DMAMEM int displayMemory[ledsPerStrip*6];
int drawingMemory[ledsPerStrip*6];
const int config = WS2811_GRB | WS2811_800kHz;
OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config);
//-------------End OctoWS2811---------------------------
SerialEvent Event1 = SerialEvent();
/*******************************************************
* when the RX buffer is set to 1, an Event will fire
* for every byte received. If you set the buffer to
* more than 1 it will fire every buffer size bytes.
*******************************************************/
char rx1Buffer[128];
void setup() {
leds.begin();
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(0);
while(!Serial);
//-----------------------------------------------------------------------------------------
//Event1.loopBack = true;// internal loopback set / "default = false"
Event1.port = &Serial1;// set port to Serial1
//Event1.txEventHandler = tx1Event;// event handler Serial1 TX
Event1.rxEventHandler = rx1Event;// event handler Serial1 RX
Event1.rxBuffer = rx1Buffer;// user supplied variable to hold incoming Serial1 data
Event1.rxBufferSize = sizeof(rx1Buffer); // size of the RX buffer
Event1.termCharacter = '\n';// this termination character will fire the RX event handler
Event1.begin(9600);// start serial port
//-----------------------------------------------------------------------------------------
}
void loop() {
}
void rx1Event(void) {
// RX Event function prints the buffer when it is full
//char myByte = rx1Buffer[0];
Serial.printf("Termination Character Event: %s\n", rx1Buffer);
//Serial.printf("Byte Recevied Event: %c\n", myByte);
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
}