I have been trying to run <Scheduler.h> on my UNO but get an error message which includes I have duplicate <IRemote.h> but iwhen I comment out the <IRemote.h> I am still getting compiler error messages messages. Does Scheduler work with a UNO?
How about posting your program and the full error message ?
(deleted)
#include <Scheduler.h>
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
//#include <IRremote.h>
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
#define SERVOMIN 200 // this is the 'minimum' pulse length count (out of 4096)
#define SERVOMAX 500 // this is the 'maximum' pulse length count (out of 4096)
int headpin = 15;
// our servo # counter
uint8_t servonum = 0;
void setup()
{
Scheduler.startloop(loop1);
Serial.begin(9600);
pwm.begin();
pwm.setPWMFreq(60); // Analog servos run at ~60 Hz updates
}
void loop() {
leg(13,400);
delay(1000);
leg(13,0);
delay(1000);
}
void loop1(){
leg(14,800);
yield();
}
void leg(int servnum,int movement){
pwm.setPWM(servnum, 0, movement);
}
error message:-
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from D:\My Projects\Blink1\Blink1.ino:1:0:
C:\Users\David\Documents\Arduino\libraries\Scheduler/Scheduler.h:33:22: fatal error: WProgram.h: No such file or directory
#include <WProgram.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I placed the file in C:\users\david\documents\arduino\libraries\scheduler
if this is of any use?
thanks
(deleted)