Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/MicroDexed/blame/commit/477445e0d01b3792e5c8d2bbe987f6cee04da738/third-party/TeensyTimerTool/examples/02_Advanced/CallbackWithParams/CallbackWithParams.ino You should set ROOT_URL correctly, otherwise the web may not work correctly.

29 lines
570 B

#include "TeensyTimerTool.h"
using namespace TeensyTimerTool;
void callback(int& someInt, int cnt) // this callback has context, i.e. parameter
{
for (int i = 0; i < cnt; i++) // whenn called, print out someInt cnt times
{
Serial.print(someInt);
Serial.print(" | ");
}
Serial.println();
}
//==============================================================
Timer t;
int number = 0;
void setup()
{
t.beginPeriodic([] { callback(number, 5); }, 50'000);
}
void loop()
{
number++; // change every second
delay(1000);
}