Closed DrFrankReade closed 5 years ago
Hi, thanks for the issue !
a - I do not have a teensy board to play with :-)
b - from searching the web, did not try this myself ... -
b.1 - On teensy Serial
is the usb port, you need to use one of the uart ports, e.g. Serial1
.
https://www.pjrc.com/teensy/td_uart.html
b.2 - See examples here, for setting different serial ports:
// explicitly set stream to use the Serial serialport
Modbus slave(Serial, 1, 8); // stream = Serial, slave id = 1, rs485 control-pin = 8
https://github.com/yaacov/ArduinoModbusSlave#handle-read-input-registers-as-arduino-analogread
Closing because issue is too old ... please reopen when we get new data.
Hello,
Getting bizzaro complier errors, probably a Teensy issue, but I never can tell because I'm not good at this stuff.
The simple.ino code won't compile on the Teensy 3.x and LC unless the "USB Type" includes a "keyboard" Doesn't work under regular serial, doesn't work under NO USB. Only seems to work if Keyboard is in the mix. Here's the horrendous error:
So it's all about this keyboard thing.
I tried compiling in the Arduino IDE 1.8.8 / TeensyDuino 1.45
Also in Platform.io / Visual Code with the same results.