Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PPM_Read.ino 362B

12345678910111213141516171819202122
  1. #include <PPM.h>
  2. #define CHANNELS 8 // max ppm channels
  3. #define PPM_PIN 2 // receiver ppm pin
  4. void setup() {
  5. ppm.begin(PPM_PIN, CHANNELS);
  6. Serial.begin(115200);
  7. }
  8. void loop() {
  9. for (uint8_t i = 1; i <= CHANNELS; i++) // print all channel values
  10. {
  11. Serial.print(ppm.get(i));
  12. Serial.print('\t');
  13. }
  14. Serial.println();
  15. delay(10);
  16. }