Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Teensy support. #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

0Hogan
Copy link

@0Hogan 0Hogan commented Aug 22, 2022

Added support for the Teensy LC/3.0/3.1/3.2/3.5/3.6/4.0/4.1

I only had the opportunity to test with a FlySky receiver and a Teensy 4.1. If others could test on some of the other boards and/or other receivers, that would be ideal.

Hopefully this helps with #25 .

@starlight-traveler
Copy link

Hey, I was just wondering how you got around this error:

src/main.cpp: In function 'void setup()':
src/main.cpp:29:13: error: no matching function for call to 'IBusBM::begin(HardwareSerialIMXRT&)'
29 | ibus.begin(Serial1);
| ~~~~~~~~~~^~~~~~~~~
In file included from src/main.cpp:2:
.pio/libdeps/teensy41/IBusBM/src/IBusBM.h:61:10: note: candidate: 'void IBusBM::begin(HardwareSerial&, IntervalTimer*, int8_t, int8_t)'
61 | void begin(HardwareSerial &serial, IntervalTimer* timerid, int8_t rxPin=-1, int8_t txPin=-1);
| ^~~~~
.pio/libdeps/teensy41/IBusBM/src/IBusBM.h:61:10: note: candidate expects 4 arguments, 1 provided
*** [.pio/build/teensy41/src/main.cpp.o] Error 1

When I create a timer object and pass it by reference I still run into an issue with the arguments.

@Casseman
Copy link

@0Hogan i am trying to get this to work with the teensy 4.0 but i cant. Could you show an example of how you did an test code?

@Casseman
Copy link

Hey, I was just wondering how you got around this error:

src/main.cpp: In function 'void setup()':
src/main.cpp:29:13: error: no matching function for call to 'IBusBM::begin(HardwareSerialIMXRT&)'
29 | ibus.begin(Serial1);
| ~~~~~~~~~~^~~~~~~~~
In file included from src/main.cpp:2:
.pio/libdeps/teensy41/IBusBM/src/IBusBM.h:61:10: note: candidate: 'void IBusBM::begin(HardwareSerial&, IntervalTimer*, int8_t, int8_t)'
61 | void begin(HardwareSerial &serial, IntervalTimer* timerid, int8_t rxPin=-1, int8_t txPin=-1);
| ^~~~~
.pio/libdeps/teensy41/IBusBM/src/IBusBM.h:61:10: note: candidate expects 4 arguments, 1 provided
*** [.pio/build/teensy41/src/main.cpp.o] Error 1

When I create a timer object and pass it by reference I still run into an issue with the arguments.

@starlight-traveler what worked for me is doing adding IBus.begin(Serial2,1); instead of IBus.begin(Serial2);. This is on teensy 4.0, hope this helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants