tracker_l1: support for EnvironmentSensorManager

This commit is contained in:
Florent
2025-09-21 22:14:22 +02:00
parent 59ea6cdb89
commit f9543bb7bb
6 changed files with 30 additions and 128 deletions

View File

@@ -108,7 +108,13 @@ bool EnvironmentSensorManager::begin() {
#endif
#if ENV_PIN_SDA && ENV_PIN_SCL
#ifdef NRF52_PLATFORM
Wire1.setPins(ENV_PIN_SDA, ENV_PIN_SCL);
Wire1.setClock(100000);
Wire1.begin();
#else
Wire1.begin(ENV_PIN_SDA, ENV_PIN_SCL, 100000);
#endif
MESH_DEBUG_PRINTLN("Second I2C initialized on pins SDA: %d SCL: %d", ENV_PIN_SDA, ENV_PIN_SCL);
#endif