Works on Uno, Not on Mega
mckirkus opened this issue · 1 comments
mckirkus commented
Hello and thank you! I'm using this with no problems on an Uno, reading transmitter values from pin zero, but when I upload the code to a Mega, it doesn't work. Are there any tips you have for getting data from the receiver with a Mega?
Code looks like this:
IBusBM IBus; // IBus object
int val1; // Channel 0 Right Stick - Left/Right (all values 1000->2000)
void setup() {
IBus.begin(Serial); // iBUS object connected to serial0 RX pin
Serial.begin(115200); // set up Serial library
}
void loop() {
val1 = IBus.readChannel(0); // get latest value for servo channel 1
...
mckirkus commented
Aaaand, it was a bad solder. Thanks for the awesome library in any case.