mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Fix PHY for led neopixel.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -37,10 +37,8 @@ tNeopixel pixel[] = {
|
|||||||
|
|
||||||
void led_driver_init() {
|
void led_driver_init() {
|
||||||
uint8_t gpio = GPIO_NUM_48;
|
uint8_t gpio = GPIO_NUM_48;
|
||||||
if (file_has_data(ef_phy)) {
|
if (phy_data.led_gpio_present) {
|
||||||
if (file_read_uint8_offset(ef_phy, PHY_OPTS) & PHY_OPT_GPIO) {
|
gpio = phy_data.led_gpio;
|
||||||
gpio = file_get_data(ef_phy)[PHY_LED_GPIO];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
neopixel = neopixel_Init(1, gpio);
|
neopixel = neopixel_Init(1, gpio);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user