This library enables you to use Interrupt from Hardware Timers on an ESP8266-based board. It now supports 16 ISR-based timers, while consuming only 1 Hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're...
Depend on it
- Open platformio.ini, a project configuration file located in the root of PlatformIO project.
- Add the following line to the lib_deps option of
[env:]
section:khoih-prog/ESP8266TimerInterrupt@^1.6.0
- Build a project, PlatformIO will automatically install dependencies.
Include it
ESP8266TimerInterrupt library provides the following header files that can be included in your project:ESP8266TimerInterrupt.h
ESP8266_ISR_Timer.h
ESP8266_ISR_Timer.hpp
#include <ESP8266TimerInterrupt.h>
Command Line Interface
- Open PlatformIO Core CLI
- Change directory (
cd
) to the PlatformIO project where platformio.ini is located. - Copy the following pio pkg install command and paste into the CLI shell, press Enter:
pio pkg install --library "khoih-prog/ESP8266TimerInterrupt@^1.6.0"