Adds i2c device configuration to native (#3143)

This commit is contained in:
Jonathan Bennett
2024-01-28 20:15:29 -06:00
committed by GitHub
parent 417feee47f
commit a49740cd56
6 changed files with 24 additions and 3 deletions

View File

@@ -150,6 +150,9 @@ void portduinoSetup()
settingsMap[has_gps] = 1;
}
}
if (yamlConfig["I2C"]) {
settingsStrings[i2cdev] = yamlConfig["I2C"]["I2CDevice"].as<std::string>("");
}
settingsMap[displayPanel] = no_screen;
if (yamlConfig["Display"]) {
if (yamlConfig["Display"]["Panel"].as<std::string>("") == "ST7789")