Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1ed4de5

Browse files
authoredJan 19, 2024
Update comment to match code output (#464)
* closes raspberrypi/pico-feedback#34
1 parent 96f4abe commit 1ed4de5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed
 

‎i2c/bus_scan/bus_scan.c

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@
88
// the I2C bus. Print out a table that looks like this:
99
//
1010
// I2C Bus Scan
11-
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
12-
// 0
13-
// 1 @
14-
// 2
15-
// 3 @
16-
// 4
17-
// 5
18-
// 6
19-
// 7
20-
//
21-
// E.g. if slave addresses 0x12 and 0x34 were acknowledged.
11+
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
12+
// 00 . . . . . . . . . . . . . . . .
13+
// 10 . . @ . . . . . . . . . . . . .
14+
// 20 . . . . . . . . . . . . . . . .
15+
// 30 . . . . @ . . . . . . . . . . .
16+
// 40 . . . . . . . . . . . . . . . .
17+
// 50 . . . . . . . . . . . . . . . .
18+
// 60 . . . . . . . . . . . . . . . .
19+
// 70 . . . . . . . . . . . . . . . .
20+
// E.g. if addresses 0x12 and 0x34 were acknowledged.
2221

2322
#include <stdio.h>
2423
#include "pico/stdlib.h"

0 commit comments

Comments
 (0)
Please sign in to comment.