An simple LED state machine from scratch
This repository contains led_ct.c
as the main programming
int initLEDGroup
: Initializes the settings of individual LEDs and the group the are inint updateLEDGroupSettings
: Updates the LED settings of the individual LEDs and the groupint displayLEDGroupStatus
: Displays the statuses of the LEDs
This project is compiled using gcc
. On a Debian GNU/Linux based system you can install it by installing the package build-essentials
as mentioned here.
You compile the led_ct.c
file using gcc
and run the executable to test it. A template main
function is provided in the led_ct.c
file.
- Clone the repo.
- open terminal in the project root directory.
- Type
gcc led_ct.c -o led_ct.out
and hitenter
key. - Type
./led_ct.out
If you would like to extend or add/request any functionality please create an issue or open a pull request with your changes.