Fix example-names mentioned in warning messages
This commit is contained in:
parent
68a18659da
commit
df23bb6ded
@ -131,7 +131,7 @@ void lcd_init() {
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
#if !defined(i2c_default) || !defined(PICO_DEFAULT_I2C_SDA_PIN) || !defined(PICO_DEFAULT_I2C_SCL_PIN)
|
#if !defined(i2c_default) || !defined(PICO_DEFAULT_I2C_SDA_PIN) || !defined(PICO_DEFAULT_I2C_SCL_PIN)
|
||||||
#warning i2c/bus_scan example requires a board with I2C pins
|
#warning i2c/lcd_1602_i2c example requires a board with I2C pins
|
||||||
#else
|
#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 (4, 5 on a Pico)
|
||||||
i2c_init(i2c_default, 100 * 1000);
|
i2c_init(i2c_default, 100 * 1000);
|
||||||
|
|||||||
@ -80,7 +80,7 @@ static void mpu6050_read_raw(int16_t accel[3], int16_t gyro[3], int16_t *temp) {
|
|||||||
int main() {
|
int main() {
|
||||||
stdio_init_all();
|
stdio_init_all();
|
||||||
#if !defined(i2c_default) || !defined(PICO_DEFAULT_I2C_SDA_PIN) || !defined(PICO_DEFAULT_I2C_SCL_PIN)
|
#if !defined(i2c_default) || !defined(PICO_DEFAULT_I2C_SDA_PIN) || !defined(PICO_DEFAULT_I2C_SCL_PIN)
|
||||||
#warning i2c/bus_scan example requires a board with I2C pins
|
#warning i2c/mpu6050_i2c example requires a board with I2C pins
|
||||||
puts("Default I2C pins were not defined");
|
puts("Default I2C pins were not defined");
|
||||||
#else
|
#else
|
||||||
printf("Hello, MPU6050! Reading raw data from registers...\n");
|
printf("Hello, MPU6050! Reading raw data from registers...\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user