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.
Dependencies: ds3_si mbed omuni solenoid
Fork of 2017_Robocon_mother by
Diff: main.cpp
- Revision:
- 2:6c6c5f2796fe
- Parent:
- 1:88d73fd8099a
- Child:
- 3:2d189409c3c3
--- a/main.cpp Mon Sep 11 02:35:29 2017 +0000 +++ b/main.cpp Thu Sep 14 04:12:21 2017 +0000 @@ -4,7 +4,7 @@ #include "solenoid.h" I2C i2c(p28, p27); -omuni omu(i2c, 0x10, 0x12, 0x14); +omuni omu(i2c, 0x10, 0x14, 0x16); solenoid sol(i2c, 0x20); Serial con(p9, p10); @@ -60,7 +60,7 @@ } pc.printf("\n\r"); */ - char soldata = ((ConData[0][3] << 2) + ConData[1][3]) << 4d; + char soldata = ((ConData[0][3] << 2) + ConData[1][3]) << 4; //printf("%d\n",soldata); sol = soldata; }