Changed pin names in example to be more universal

pull/12161/head
George Beckstein 2020-04-03 06:10:53 -04:00
parent 2a2295c0b3
commit 6baab6cd33
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ namespace mbed {
* #error [NOT_SUPPORTED] I2C Slave is not supported * #error [NOT_SUPPORTED] I2C Slave is not supported
* #endif * #endif
* *
* I2CSlave slave(p3, p4); * I2CSlave slave(I2C_SDA, I2C_SCL);
* *
* int main() { * int main() {
* *
@ -86,7 +86,7 @@ namespace mbed {
* *
* // Master side of the example * // Master side of the example
* *
* I2C master(p3, p4); * I2C master(I2C_SDA, I2C_SCL);
* *
* static const char* to_send[] = { "abcde", "12345", "EFGHI" }; * static const char* to_send[] = { "abcde", "12345", "EFGHI" };
* *