mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Added PHY options to control the brigthness of the LED and its dimming.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -65,11 +65,17 @@ void usb_init() {
|
||||
if (opts & PHY_OPT_WCID) {
|
||||
enable_wcid = true;
|
||||
}
|
||||
if (opts & PHY_OPT_DIMM) {
|
||||
led_dimmable = true;
|
||||
}
|
||||
}
|
||||
if (file_get_size(ef_phy) >= 4 && opts & PHY_OPT_VPID) {
|
||||
desc_device.idVendor = (data[PHY_VID] << 8) | data[PHY_VID+1];
|
||||
desc_device.idProduct = (data[PHY_PID] << 8) | data[PHY_PID+1];
|
||||
}
|
||||
if (opts & PHY_OPT_BTNESS) {
|
||||
led_phy_btness = data[PHY_LED_BTNESS];
|
||||
}
|
||||
}
|
||||
mutex_init(&mutex);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user