This repo demonstrates how to work with an Arduino's PWM outputs in a clean programmer-friendly way. It packages all the low-level interaction with timer clocks that underly PWM functionality, ...
In this example, we will use 4 One-Time GTimer, and pass user data to each timer. Open the example “File” -> “Examples” -> “AmebaGTimer” -> “TimerOneshot”. Compile and upload to Ameba, and press reset ...