EDIT: That worked Mark!
New Code Mapping attempt (Compiles,does not work)
#include <TinyServo.h>
#include <TinyPinChange.h>
#include <TinyPpmReader.h>
#include <Rcul.h>
int PPM_INPUT_PIN = TinyPpmReader.width_us(3); //<------- Doesn't work
//int potpin0 = 3; <--------- // This worked
int val0; // integer to store value
const byte SERVOS = 1; // how many servos do you have? up to 5 on ATTiny85 and 8 on ATtiny84/2313
const byte servoPin[SERVOS] = { 0 }; // what pins are your servos on?
// you have the option to give your servos nice names. 0 refers to the first servo pin above, 1 to the second, etc
#define PANSERVO 0
#define PPM_INPUT_PIN 2 <--------- //define pin for ppm input
void setup()
{
setupServos();
}
void loop()
{
val0 = analogRead(PPM_INPUT_PIN); <--------- // reads the value of the potentiometer (value between 0 and 1023) // reads the value of the 2nd potentiometer (value between 0 and 1023)
val0= map(val0, 1000, 2000, 0, 180);
// scale it to use it with the servo (value between 0 and 180)
// scale it to use it with the servo (value between 0 and 180)
moveServo(PANSERVO, val0);
delay(5); // waits for the servo to get there
}