Status LEDs (#104)

* Don't start metrics thread if not on linux

* Add statusLED support

* [Hardware] Add status LED support

* [Hardware] Invalid LED port checks

* [Hardware] Check if statusLED exists in config
This commit is contained in:
Xzibit
2020-08-27 14:53:02 -04:00
committed by GitHub
parent b6d9fe216a
commit 81e5eef7ae
6 changed files with 182 additions and 109 deletions

View File

@@ -44,5 +44,9 @@ public class HardwareManagerTest {
for (int i = 0; i < 101; i++) {
instance.getGPIO(13).dimLED(i);
}
Assertions.assertEquals(config.statusRGBPins.get(0), -1);
Assertions.assertEquals(config.statusRGBPins.get(1), -1);
Assertions.assertEquals(config.statusRGBPins.get(2), -1);
}
}