File main.c
File List > arduino > src > main.c
Go to the documentation of this file.
/* Copyright (c) Kuba Szczodrzyński 2023-02-27. */
#include <Arduino.h>
int main() {
// initialize Arduino framework
lt_init_arduino();
// start the main task and OS kernel
if (!startMainTask()) {
LT_F("Couldn't start the main task");
return 1;
}
return 0;
}
void mainTask(const void *arg) {
setup();
for (;;) {
loop();
yield();
}
}