From 3e5ab5f49a7a98ad35723f73f2f5d3a81147a033 Mon Sep 17 00:00:00 2001 From: "graham.sanderson@raspberrypi.com" Date: Mon, 1 Mar 2021 09:30:55 -0600 Subject: [PATCH] fixup typos --- i2c/bus_scan/bus_scan.c | 2 +- i2c/lcd_1602_i2c/lcd_1602_i2c.c | 2 +- i2c/mpu6050_i2c/mpu6050_i2c.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i2c/bus_scan/bus_scan.c b/i2c/bus_scan/bus_scan.c index e0c8b5e..774594e 100644 --- a/i2c/bus_scan/bus_scan.c +++ b/i2c/bus_scan/bus_scan.c @@ -35,7 +35,7 @@ int main() { // Enable UART so we can print status output stdio_init_all(); #if !defined(i2c_default) || !defined(PICO_DEFAULT_I2C_SDA_PIN) || !defined(PICO_DEFAULT_I2C_SCL_PIN) -#warning i2c/bus_scane example requires a board with I2C pins +#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) diff --git a/i2c/lcd_1602_i2c/lcd_1602_i2c.c b/i2c/lcd_1602_i2c/lcd_1602_i2c.c index 44ca9d8..4cea8ce 100644 --- a/i2c/lcd_1602_i2c/lcd_1602_i2c.c +++ b/i2c/lcd_1602_i2c/lcd_1602_i2c.c @@ -131,7 +131,7 @@ void lcd_init() { int main() { #if !defined(i2c_default) || !defined(PICO_DEFAULT_I2C_SDA_PIN) || !defined(PICO_DEFAULT_I2C_SCL_PIN) - #warning i2c/bus_scane example requires a board with I2C pins + #warning i2c/bus_scan example requires a board with I2C pins #else // This example will use I2C0 on the default SDA and SCL pins (4, 5 on a Pico) i2c_init(i2c_default, 100 * 1000); diff --git a/i2c/mpu6050_i2c/mpu6050_i2c.c b/i2c/mpu6050_i2c/mpu6050_i2c.c index 5a2953c..8114923 100644 --- a/i2c/mpu6050_i2c/mpu6050_i2c.c +++ b/i2c/mpu6050_i2c/mpu6050_i2c.c @@ -80,7 +80,7 @@ static void mpu6050_read_raw(int16_t accel[3], int16_t gyro[3], int16_t *temp) { int main() { stdio_init_all(); #if !defined(i2c_default) || !defined(PICO_DEFAULT_I2C_SDA_PIN) || !defined(PICO_DEFAULT_I2C_SCL_PIN) - #warning i2c/bus_scane example requires a board with I2C pins + #warning i2c/bus_scan example requires a board with I2C pins puts("Default I2C pins were not defined'); #else printf("Hello, MPU6050! Reading raw data from registers...\n");