EBC Exercise 17 Switching a GPIO to an LED

From eLinux.org
Revision as of 13:14, 26 August 2020 by Yoder (talk | contribs) (Initial info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder


Most GPIOs are accessed through /sys/class/gpio. The builtin LEDs are accessed through /sys/class/leds. LEDs accessed this way have special powers (the trigger).

This exercise shows how to make an LED attached to on of the GPIO to appear in the /sys/class/leds interface.

journalctl



thumb‎ Embedded Linux Class by Mark A. Yoder