Examples on how to use on board LED using mraa library
Following examples are provided to use LED using MRAA library.
- mraa_led.c
- mraa_led.cpp
- mraa_led.py
Usage:
Prerequisite: Debian running on 96Boards CE with libmraa installed
- Copy the examples to 96Boards CE
- Build the C/C++ examples:
$ gcc mraa_led.c -o led_c $ g++ mraa_led.cpp -o led_c++
- Execute the examples:
$ sudo ./led_c $ sudo ./led_c++ $ sudo python mraa_led.py
Expected Behaviour:
- Reads maximum brightness value for USER1 led and turns it ON/OFF depending on current state.
- Finally sets led trigger to heartbeat.