New Ticker (Timer) Library

Have you tried my library for ESP? I think it should work for every platform which use the Arduino framework.