mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Add support for Green/Yellow status LEDs, like is used on some Limelights (#2287)
This commit is contained in:
@@ -19,14 +19,18 @@ When running on Linux, PhotonVision can use [diozero](https://www.diozero.com) t
|
||||
"ledsCanDim" : true,
|
||||
"ledBrightnessRange" : [ 0, 100 ],
|
||||
"ledPWMFrequency" : 0,
|
||||
"statusRGBPins" : [ ],
|
||||
"statusRGBActiveHigh" : false,
|
||||
"statusLEDType": "RGB",
|
||||
"statusLEDPins" : [ ],
|
||||
"statusLEDActiveHigh" : false,
|
||||
}
|
||||
```
|
||||
|
||||
:::{note}
|
||||
No hardware boards with status RGB LED pins or non-dimming LED's have been tested yet. Please reach out to the development team if these features are desired, they can assist with configuration and testing.
|
||||
:::
|
||||
There are currently two types of status LEDs supported:
|
||||
|
||||
* `RGB` (default): A singular LED mixing separate red, green, and blue inputs
|
||||
* `GreenYellow`: A pair of independent green and yellow LEDs
|
||||
|
||||
For an explanation of the colors used for status LEDs, see {ref}`Status LEDs<docs/troubleshooting/status-leds:Status LEDs>`
|
||||
|
||||
### GPIO Pinout
|
||||
|
||||
@@ -134,8 +138,9 @@ Here is a complete example `hardwareConfig.json`:
|
||||
"ledsCanDim" : true,
|
||||
"ledBrightnessRange" : [ 0, 100 ],
|
||||
"ledPWMFrequency" : 0,
|
||||
"statusRGBPins" : [ ],
|
||||
"statusRGBActiveHigh" : false,
|
||||
"statusLEDType": "RGB",
|
||||
"statusLEDPins" : [ ],
|
||||
"statusLEDActiveHigh" : false,
|
||||
"getGPIOCommand" : "getGPIO {p}",
|
||||
"setGPIOCommand" : "setGPIO {p} {s}",
|
||||
"setPWMCommand" : "setPWM {p} {v}",
|
||||
|
||||
Reference in New Issue
Block a user