
Originally Posted by
defragster
Pin 35 may have TX8 function - but as used - it isn't doing UART Serial and would have no reason to associate Pin 34 to that use.
Even if TX8 was in use for UART - the RX8 pin could be repurposed after the Serial.begin() and that Serial8 port would only have transmit function.
@defragster - yes the irq pin it needs to be read as an input. How about this based on your suggestion:
Code:
#define SUB_PROCESSOR_IRQ 34 // RX8 // interrupt requrst pin to begin i2c data request from the subprocessor
#define WS2812_PIN 35 // TX8
void setupSubProcessor() // called in setup() after serial.begin
{
pinMode(subProcessor.ledPin, OUTPUT); // important
pinMode(SUB_PROCESSOR_IRQ, INPUT); // important
attachInterrupt(digitalPinToInterrupt(SUB_PROCESSOR_IRQ), subProcessorIRQ, RISING); // set an interrupt
}
void setup()
{
serial.begin(57600);
// etc
setupSubProcessor();
}
Im not running a serial.begin(); for UART 8 ( unless serial.begin(57600) starts all 8 UART??) , for the WS2812 use of UART 8, im only declaring the use of ws2812 in header:
Code:
WS2812Serial leds(numled, displayMemory, drawingMemory, WS2812_PIN, WS2812_GRB);
Does all this look ok? Im about to order a PCB so checking all bases....