aboutsummaryrefslogtreecommitdiff
path: root/main/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/init.c')
-rw-r--r--main/init.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/init.c b/main/init.c
index 6d29d19..d85c94d 100644
--- a/main/init.c
+++ b/main/init.c
@@ -29,11 +29,15 @@ static void init_wifi() {
}
static void init_i2c() {
- gpio_set_function(CFG_SDA_PIN, GPIO_FUNC_I2C);
- gpio_set_function(CFG_SCL_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SDA0_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SCL0_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SDA1_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SCL1_PIN, GPIO_FUNC_I2C);
- gpio_pull_up(CFG_SDA_PIN);
- gpio_pull_up(CFG_SCL_PIN);
+ gpio_pull_up(CFG_SDA0_PIN);
+ gpio_pull_up(CFG_SCL0_PIN);
+ gpio_pull_up(CFG_SDA1_PIN);
+ gpio_pull_up(CFG_SCL1_PIN);
pb_setup();
}