Skip to content

Commit

Permalink
Channels is 1-based.
Browse files Browse the repository at this point in the history
Thanks @sfjuocekr!
  • Loading branch information
CapnBry committed Jan 13, 2022
1 parent efd78cc commit 2e719a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/CrsfSerial/examples/basic_crsf/basic_crsf.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ CrsfSerial crsf(Serial1, CRSF_BAUDRATE); // pass any HardwareSerial port

/***
* This callback is called whenever new channel values are available.
* Use crsf.getChannel(x) to get us channel values.
* Use crsf.getChannel(x) to get us channel values (1-16).
***/
void packetChannels()
{
Serial.print("CH0=");
Serial.println(crsf.getChannel(0));
Serial.print("CH1=");
Serial.println(crsf.getChannel(1));
}

void setup()
Expand Down

0 comments on commit 2e719a8

Please sign in to comment.