4ld and ar um: default pins -1, if set, show in pin dropdown

Audio reactive usermod: add pio.ini build flags defaults (⎌) for mclk, sda and scl (if set)

4ld usermod: 
- if pio.ini build flags not set, make them -1 (undefined is even better but then problems with allocate pins, to be done later)
- pio.ini build flags defaults (⎌) different if spi (clockspi and mosispi instead of scl and sda)
- add pio.ini build flags defaults (⎌) for SPI CS, DC and RESET
This commit is contained in:
Ewoud
2023-01-27 11:09:08 +01:00
parent 3953b7a2a5
commit 6437cc8c7e
4 changed files with 167 additions and 146 deletions

View File

@@ -405,10 +405,10 @@ public:
}
void appendConfigData() {
oappend(SET_F("addHB('BME280/BMP280');"));
oappend(SET_F("addHB('BME280');"));
oappend(SET_F("addInfo('BME280/BMP280:pin[]',0,'','I2C/SPI CLK');"));
oappend(SET_F("dRO('BME280/BMP280:pin[]',0);"));
oappend(SET_F("dRO('BME280/BMP280:pin[]',0);")); // disable read only pins
oappend(SET_F("rOpt('BME280/BMP280:pin[]',0,'use global (")); oappendi(i2c_scl); oappend(")',-1);");
oappend(SET_F("addInfo('BME280/BMP280:pin[]',1,'','I2C/SPI DTA');"));