Introducing EF_PHY to store PHY (VIDPID and LED no.).

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-04-16 23:22:11 +02:00
parent afc71f6942
commit ade730ffb5
5 changed files with 23 additions and 21 deletions

View File

@@ -423,7 +423,11 @@ int main(void) {
//ccid_prepare_receive(&ccid);
#ifdef ESP_PLATFORM
neopixel = neopixel_Init(1, GPIO_NUM_48);
uint8_t gpio = GPIO_NUM_48;
if (file_has_data(ef_phy)) {
gpio = file_get_data(ef_phy)[PHY_LED_GPIO];
}
neopixel = neopixel_Init(1, gpio);
#endif
#ifdef ESP_PLATFORM