bmellink / IBusBM

Arduino library for RC IBUS protocol - servo (receive) and sensors/telemetry (send) using hardware UART
GNU General Public License v3.0
199 stars 51 forks source link

Works on Uno, Not on Mega #4

Closed mckirkus closed 4 years ago

mckirkus commented 4 years ago

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 4 years ago

Aaaand, it was a bad solder. Thanks for the awesome library in any case.