Skip to content

PICO_DEFAULT_I2C_INSTANCE undefined #3

@ccason1

Description

@ccason1

/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions