Skip to the content.

Button Demo

Hardware required:

This is a very simple demonstration of a “one-shot” timer in FREERTOS

This program is based on the buttontime demo for the RT 1060 EVK board, but this uses two buttons:

Initially, both LEDs will blink slow at 1 Hz rate. However, if a button is pressed briefly, that button’s corresponding LED will then blink at a much higher rate. If the button is pressed for > 2 s, then it will blink at the slower rate again.