libretiny

This commit is contained in:
Mit4el
2024-09-20 12:45:17 +03:00
parent b32abb5a28
commit 596eb9cad4
78 changed files with 8577 additions and 63 deletions

View File

@@ -105,9 +105,9 @@ void TickerScheduler::update()
{
if (this->items[i].is_used)
{
#ifdef ARDUINO_ARCH_AVR
//#ifdef ARDUINO_ARCH_AVR
this->items[i].t.Tick();
#endif
//#endif
handleTicker(this->items[i].cb, this->items[i].cb_arg, &this->items[i].flag);
}

View File

@@ -7,7 +7,7 @@
#include <stdint.h>
#ifdef ARDUINO_ARCH_AVR
#if defined ARDUINO_ARCH_AVR || defined LIBRETINY
class Ticker
{
typedef void(*ticker_callback_t)(bool*);
@@ -41,12 +41,17 @@ public:
this->is_attached = true;
}
};
#endif
#else
//#ifdef ARDUINO_ARCH_ESP8266
#include <Ticker.h>
#include <functional>
//#endif
#endif
#if defined LIBRETINY
#include <functional>
#endif
void tickerFlagHandle(volatile bool * flag);