I was looking through the code and noticed that PROGMEM is defined as nothing for Teensy 3, but as "__attribute__((section(".progmem")))" for Teensy 4. (avr/pgmspace.h.)
Two questions:
Is PROGMEM needed again for...
I have to comment that 3-pin XLR is disallowed by the DMX standard. But having said that, it looks like your non-inverting input (A) is connected to pin 2 and B is connected to pin 3. Try swapping those. After some...
I've been playing with this some more and, for posterity, I'll post my latest "correct and it's really perfect now" (HA!) code. I'll post here if there's more improvements.
Here's my "stdio implementation" block:
...
Ok, I think I understand what's going on, now. @luni that link helped, thanks.
Fact: The `printf` family of functions need a `_write` function defined somewhere (this is how the current libraries do it, at...
I'll add another interesting detail: The code compiles and operates fine for Teensy 3 with the Teensyduino IDE but not with PlatformIO. With PlatformIO, it complains of the missing `_write`. Maybe PlatformIO is doing...
I should add: This works for Teensy 4 compilation but not for earlier versions, as the original poster stated about the unresolved reference to `_write`.
I wanted this same behaviour and found that this works for me, to replace `stdout`:
stdout = fwopen(&Serial, (void *cookie, const char *buf, int count) {
return reinterpret_cast<Print *>(cookie)->write(buf,...