mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-26 01:51:40 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"deviceLogoPath": "photonvision.png",
|
||||
"supportURL": "https://support.photonvision.com",
|
||||
"ledPins" : [2, 13],
|
||||
"statusRGBPins" : [-1, -1, -1],
|
||||
"ledSetCommand" : "",
|
||||
"ledsCanDim" : true,
|
||||
"ledPWMRange" : [0, 100],
|
||||
|
||||
Reference in New Issue
Block a user