SimpleTimer With RPi

Is there a SimpleTimer for the RPi, if so how do I get it, or if not , how do I resolve the problem?

Assuming you are using WiringPi then the SimplerTimer library should work fine. Under the hood it just calls millis() so it should work fine.

http://playground.arduino.cc/Code/SimpleTimer

Ok thanks, I am using WiringPi

How do I download that because I tried git clone … and it returns Error 403 while accessing … and fatal: HTTP Request Failed

Well it isn’t a git repo, but rather some “copy-paste”. Or, you can run the following three commands to download the files:

curl 'http://playground.arduino.cc/Code/SimpleTimer?action=sourceblock&num=1' > SimpleTimerAlarmExample.pde
curl 'http://playground.arduino.cc/Code/SimpleTimer?action=sourceblock&num=2' > SimpleTimer.h
curl 'http://playground.arduino.cc/Code/SimpleTimer?action=sourceblock&num=3' > SimpleTimer.cpp

The first one isn’t technically necessary as its just an example file.