reformat cultivar_sensor.ino with 2-space indent and add CULTIVAR_ENV_WIRE define for platform-specific Wire selection
This commit is contained in:
1 parent
89173129d9
commit
0f2dac32f1
3 files changed
+56
-57
No files matched your search
@@ -31,11 +31,13 @@
|
||||
do { char _b[128]; snprintf(_b, sizeof(_b), fmt, ##__VA_ARGS__); Serial.print(_b); } while(0)
|
||||
#define CULTIVAR_ENV_SDA 0
|
||||
#define CULTIVAR_ENV_SCL 0
|
||||
#define CULTIVAR_ENV_WIRE Wire1
|
||||
#else
|
||||
#define CULTIVAR_SERIAL_PRINTF(fmt, ...) Serial.printf(fmt, ##__VA_ARGS__)
|
||||
// ── Default I2C pins (ESP32S3 dev board — override for production) ─────────
|
||||
#define CULTIVAR_ENV_SDA 42
|
||||
#define CULTIVAR_ENV_SCL 41
|
||||
#define CULTIVAR_ENV_WIRE Wire
|
||||
#endif
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
Reference in new issue
Block a user