Initial commit

This is just the 2018 code configured for PlatformIO
This commit is contained in:
jvblanck
2021-06-09 12:10:12 +02:00
commit 4faddf9248
77 changed files with 10334 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#include <DueTimer.h>
void firstHandler(){
Serial.println("[- ] First Handler!");
}
void secondHandler(){
Serial.println("[ - ] Second Handler!");
}
void thirdHandler(){
Serial.println("[ -] Third Handler!");
}
void setup(){
Serial.begin(9600);
Timer3.attachInterrupt(firstHandler).start(500000); // Every 500ms
Timer4.attachInterrupt(secondHandler).setFrequency(1).start();
Timer5.attachInterrupt(thirdHandler).setFrequency(10);
}
void loop(){
delay(2000);
Timer5.start();
delay(2000);
Timer5.stop();
}