Skip to content

Commit 6baab6c

Browse files
committed
Changed pin names in example to be more universal
1 parent 2a2295c commit 6baab6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/I2CSlave.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace mbed {
5353
* #error [NOT_SUPPORTED] I2C Slave is not supported
5454
* #endif
5555
*
56-
* I2CSlave slave(p3, p4);
56+
* I2CSlave slave(I2C_SDA, I2C_SCL);
5757
*
5858
* int main() {
5959
*
@@ -86,7 +86,7 @@ namespace mbed {
8686
*
8787
* // Master side of the example
8888
*
89-
* I2C master(p3, p4);
89+
* I2C master(I2C_SDA, I2C_SCL);
9090
*
9191
* static const char* to_send[] = { "abcde", "12345", "EFGHI" };
9292
*

0 commit comments

Comments
 (0)