объявляются два экземпляра wire по номеру железного I2C, по дефолту используется тот, что задан для каждой платы

This commit is contained in:
klassents committed 2025-05-26 13:07:21 +07:00
1 parent 54ec7ed9fe
commit 37b2788851
6 files changed
+19 -11

No files matched your search

+2 -1
View File
@@ -131,9 +131,10 @@ void spi_onBegin(uint8_t spiNum);
void spi_onEnd(uint8_t spiNum);
// I2C
#define I2C_COMMON_QTY 1
#define DEFAULT_WIRE Wire1 // use I2C1 by default
#define PIN_WIRE_SDA 18
#define PIN_WIRE_SCL 19
#define I2C_COMMON_QTY 1
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
// available frequencies