fixup typos

This commit is contained in:
graham.sanderson@raspberrypi.com 2021-03-01 09:30:55 -06:00 committed by Graham Sanderson
parent 3c82d8aa2b
commit 3e5ab5f49a
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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");