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: mbed mbed-rtos Motor LSM9DS1_Library_cal X_NUCLEO_53L0A1
Diff: main.cpp
- Revision:
- 6:c119cc5d48d6
- Parent:
- 5:77c6821ae418
- Child:
- 8:bfa4bf23522c
--- a/main.cpp Sun Apr 14 03:23:36 2019 +0000 +++ b/main.cpp Mon Apr 15 18:32:16 2019 +0000 @@ -1,10 +1,13 @@ #include "mbed.h" +#include "globals.h" #include "DataDistributor.h" #include "RobotController.h" -extern Serial pc(USBTX, USBRX); +Serial pc(USBTX, USBRX); +DigitalIn pb(p26); int main() { + pb.mode(PullUp); DataDistributor dataDistributor; RobotController robotController(p21, p15, p16, p22, p18, p19, p17, p20);