Open kristoffee opened 2 years ago
Wire is used as the communication handle of twatch by default. If you want to use 25 and 26 as I2C communication, you can use Wire1
const uint8_t sda = 25;
const uint8_t scl = 26;
Wire1.begin(sda,scl);
Thanks! It looks like when LILYGO_WATCH_HAS_TOUCH is defined, CapacitiveTouch defined in TTGO.h also uses Wire1. I managed to get my external I2C sensor working by performing the below adjustments.
Hope the above helps someone else!
Do you know why the PINS changed from 21, 22 to 25, 26 on the new board version?
GPS-M8N bottom PCB board I2C pin assignment changed between v1.1 and v1.2. This prevents additional I2C sensors on the expansion board working on the same default pins. I2C pins for v1.1 = 21, 22 I2C pins for v1.2 = 25, 26
Please provide example code to handle additional sensor via the grove connector on the expansion board. Currently, If I start the sensor with pins 25, 26, it works but then other devices on the main board won't function. If I leave it on default pins, the devices on the main board function but not the one connected externally to the GPS-M8N bottom board.
Attached images showing the difference between version 1.1 and 1.2. I purchased v1.1 but received 1.2.