Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Robot.cpp
- Revision:
- 5:22ad3005bc11
- Parent:
- 1:dc87724abce8
--- a/Robot.cpp Wed Apr 28 11:19:28 2021 +0000 +++ b/Robot.cpp Fri Apr 30 12:23:33 2021 +0100 @@ -1,7 +1,7 @@ #include "Robot.h" #include "mbed.h" -I2C i2c(I2C_SDA, I2C_SCL ); +I2C i2c(PB_9, PB_8 ); const int addr8bit = 20 << 1; // 7bit I2C address is 20; 8bit I2C address is 40 (decimal). int16_t countsLeft = 0;