Open sabas1080 opened 3 years ago
but timers not work
@sabas1080 Can you elaborate? What is it that doesn't work? You can check here how timers are implemented for micros() and millis(): https://github.com/arduino/ArduinoCore-mbed/blob/master/cores/arduino/wiring.cpp
Hi
I am modifying SX126x-Arduino library to work with this core, but i need to work with Ticker in milliseconds, I have only been able to work in microseconds
https://github.com/ElectronicCats/SX126x-Arduino/blob/add_support_arduino_mbed/src/boards/mcu/nrf52840/timer.cpp#L86
I tried with
timeoutTickers[idx].attach((mbed::callback(obj->Callback)), timerTimes[idx] / 1e3);
but timers not work
Version for ESP32: https://github.com/ElectronicCats/SX126x-Arduino/blob/master/src/boards/mcu/espressif/timer.cpp Version for nrf Adafruit Core: https://github.com/ElectronicCats/SX126x-Arduino/blob/master/src/boards/mcu/nrf52832/timer.cpp
Thanks