i2c_sda, i2c_scl, spi_mosi, spi_miso, spi_sclk without HW_PIN_*, bh1750
platformio: - add bh1750 to _max - define rotary defaults for wemos usermod_bh1750 - Remove HW_PIN_* and replace by i2c_sda etc - add appendConfigData usermods mpu6050_imu, rtc, 4ld, pinmanager - Remove HW_PIN_* change SDA2:pin (etc) to SDA:pin
This commit is contained in:
@@ -119,13 +119,8 @@ class MPU6050Driver : public Usermod {
|
||||
void setup() {
|
||||
// WLEDMM begin
|
||||
USER_PRINTLN(F("mpu setup"));
|
||||
#if 0 // WLEDMM: delay I2C pin alloc
|
||||
int8_t hw_scl = i2c_scl<0 ? HW_PIN_SCL : i2c_scl;
|
||||
int8_t hw_sda = i2c_sda<0 ? HW_PIN_SDA : i2c_sda;
|
||||
#else
|
||||
int8_t hw_scl = i2c_scl;
|
||||
int8_t hw_sda = i2c_sda;
|
||||
#endif
|
||||
|
||||
PinManagerPinType pins[2] = { { hw_scl, true }, { hw_sda, true } };
|
||||
if ((hw_scl < 0) || (hw_sda < 0)) {
|
||||
|
||||
Reference in New Issue
Block a user