daydreambelieber
New member
Hi everyone, I don't usually get involved on the forums but I'm very impressed with the Teensy, Paul, and this whole community. I came close to posting a couple times already but, thanks to existing threads, I was able to get eclipse and my new 3.1 playing nice on linux and get over a couple other hurdles.
Most recently I thought there was a problem with the 4D Systems goldelox library, but I managed to figure it out.
The 4D library didn't like "Serial1" (maybe it's too many steps removed from Stream, which the lib uses directly...?)
At any rate, it would work if I called it "Uart" like this page suggests: https://www.pjrc.com/teensy/td_uart.html
I wanted to use Serial2 and Serial3 though. I dug into the definition of HardwareSerial() and happened to spot HardwareSerial2 and HardwareSerial3 below it.
Thus, to use the uart on pins 9 & 10 of the Teensy 3.1 it's
Maybe this is more obvious to others, but this is my first venture into 'Arduino' with multiple uarts.
So I was thinking that this page https://www.pjrc.com/teensy/td_uart.html should give a little more detail on the numbering.
Also, I spotted a typo on that page: "Serail2"
Many thanks for an amazing product. You haven't seen the last of me!!
Most recently I thought there was a problem with the 4D Systems goldelox library, but I managed to figure it out.
The 4D library didn't like "Serial1" (maybe it's too many steps removed from Stream, which the lib uses directly...?)
At any rate, it would work if I called it "Uart" like this page suggests: https://www.pjrc.com/teensy/td_uart.html
Code:
HardwareSerial Uart = HardwareSerial();
Goldelox_Serial_4DLib Display(&Uart);
I wanted to use Serial2 and Serial3 though. I dug into the definition of HardwareSerial() and happened to spot HardwareSerial2 and HardwareSerial3 below it.
Thus, to use the uart on pins 9 & 10 of the Teensy 3.1 it's
Code:
HardwareSerial2 Uart = HardwareSerial2();
Goldelox_Serial_4DLib Display(&Uart); //now "Uart" == "Serial2"
Maybe this is more obvious to others, but this is my first venture into 'Arduino' with multiple uarts.
So I was thinking that this page https://www.pjrc.com/teensy/td_uart.html should give a little more detail on the numbering.
Also, I spotted a typo on that page: "Serail2"
Many thanks for an amazing product. You haven't seen the last of me!!