Skip to content
Snippets Groups Projects

fix(leds): Use new portexpander API

Merged schneider requested to merge schneider/leds-fix into master
2 files
+ 9
6
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 9
0
#include "gpio.h"
#include "portexpander.h"
#include <stdint.h>
#include <string.h>
@@ -204,6 +205,14 @@ void leds_init(void)
leds[i][3] = 8;
}
if(portexpander_detected()) {
// Turn on LEDs
// TODO: only turn on LEDs if value != 0,0,0 && dim > 0
portexpander_set(0, 0);
portexpander_set(1, 0);
portexpander_set(2, 0);
}
leds_update();
}
Loading