CPPM Library for Arduino

Hello!

I Try your code, and it's dosen't work!!!!

#include "CPPM.h"

// your code...

void setup(void)
{
  pinMode(11,INPUT);
  Serial.begin(9600);
  CPPM.begin();
}

void loop(void)
{
  if (CPPM.synchronized())
  {
    int throttle = CPPM.read(CPPM.THRO);
    digitalWrite(11, !digitalRead(11));    //LED
    Serial.println(throttle);
  }
}

I see nothing in monitoring

#include "CPPM.h"

I do this because i put .cpp and .h in the same directory

I change in .h the pin interrupt like this because i use an AtMega32u4: INT0 is on pin 5

#define CPPM_ICP1 5

I use an Teensy v2:
My board : Teensy® 2.0
Doc : http://www.atmel.com/images/doc7766.pdf

And my RC is : FRSKY D4RII (It's working on my Naze32 ! )

Thx for help :wink: