From 1b1948af46f68e159618083e932cd2b88bda4eda Mon Sep 17 00:00:00 2001 From: Adrian Hesketh Date: Thu, 21 Oct 2021 23:21:15 +0100 Subject: [PATCH] bus_scan.c example - clarify pin number in comment (#146) --- i2c/bus_scan/bus_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i2c/bus_scan/bus_scan.c b/i2c/bus_scan/bus_scan.c index 1dbc8cd..96711a5 100644 --- a/i2c/bus_scan/bus_scan.c +++ b/i2c/bus_scan/bus_scan.c @@ -38,7 +38,7 @@ int main() { #warning i2c/bus_scan example requires a board with I2C pins puts("Default I2C pins were not defined"); #else - // This example will use I2C0 on the default SDA and SCL pins (4, 5 on a Pico) + // This example will use I2C0 on the default SDA and SCL pins (GP4, GP5 on a Pico) i2c_init(i2c_default, 100 * 1000); gpio_set_function(PICO_DEFAULT_I2C_SDA_PIN, GPIO_FUNC_I2C); gpio_set_function(PICO_DEFAULT_I2C_SCL_PIN, GPIO_FUNC_I2C);