-
Notifications
You must be signed in to change notification settings - Fork 6
Description
/home/pi/Code/pico/hm01b0-library-for-pico/examples/serial_terminal/main.c:12:22: error: 'PICO_DEFAULT_I2C_INSTANCE' undeclared here (not in a function)
.i2c = PICO_DEFAULT_I2C_INSTANCE,
^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [examples/serial_terminal/CMakeFiles/serial_terminal.dir/build.make:82: examples/serial_terminal/CMakeFiles/serial_terminal.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2311: examples/serial_terminal/CMakeFiles/serial_terminal.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
This issue exists for both serial_terminal example and usb_camera example.
The issue appears to be fixed by replacing PICO_DEFAULT_I2C_INSTANCE with PICO_DEFAULT_I2C. However, I have as yet been unable to get anything other than a blank screen so far, so I'm not yet certain whether this is a safe fix.