diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-28 01:11:08 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-28 01:11:08 +0100 |
commit | 574e638d764a653b67346ce348bc1a9fb26b62d4 (patch) | |
tree | a4a96c6eb82de7060f017cb359e5220414df4726 /src | |
parent | aa7441df6339a55abe21fa5aec66aab0afba7e00 (diff) |
gpio: fix led control functions
The LED GPIO is active-low.
Diffstat (limited to 'src')
-rw-r--r-- | src/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,11 +108,11 @@ gpio_setup(void) void gpio_led_on(void) { - gpio_set_output(gpio_c_regs, 13, true); + gpio_set_output(gpio_c_regs, 13, false); } void gpio_led_off(void) { - gpio_set_output(gpio_c_regs, 13, false); + gpio_set_output(gpio_c_regs, 13, true); } |