From f11176c56bb5c9e0f2f132c36edf69678c7dc8f4 Mon Sep 17 00:00:00 2001 From: KLASSENTS Date: Mon, 3 Feb 2025 13:20:05 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B0=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D0=B4=D0=B5=D1=80=D0=B6=D0=B8=D0=B2=D0=B0=D0=B5=D1=82=20=D1=82?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BE=D0=B4=D0=B8=D0=BD=20i2c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- variants/elbear_nano/pins_arduino.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/variants/elbear_nano/pins_arduino.h b/variants/elbear_nano/pins_arduino.h index 8af0da7..db4e8c7 100644 --- a/variants/elbear_nano/pins_arduino.h +++ b/variants/elbear_nano/pins_arduino.h @@ -119,11 +119,11 @@ void spi_onBegin(uint8_t spiNum); void spi_onEnd(uint8_t spiNum); // I2C -#define PIN_WIRE_SDA (18) -#define PIN_WIRE_SCL (19) -#define I2C_NUM (1) // i2c number 1 -static const uint8_t SDA = PIN_WIRE_SDA; -static const uint8_t SCL = PIN_WIRE_SCL; +#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 #define WIRE_FREQ_100K 100000 #define WIRE_FREQ_400K 400000