We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1813f81 commit 849279aCopy full SHA for 849279a
i2c/bus_scan/bus_scan.c
@@ -66,7 +66,7 @@ int main() {
66
if (reserved_addr(addr))
67
ret = PICO_ERROR_GENERIC;
68
else
69
- ret = i2c_read_blocking(i2c0, addr, &rxdata, 1, false);
+ ret = i2c_read_blocking(i2c_default, addr, &rxdata, 1, false);
70
71
printf(ret < 0 ? "." : "@");
72
printf(addr % 16 == 15 ? "\n" : " ");
0 commit comments