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: main.cpp
- Revision:
- 14:12fb3e326911
- Parent:
- 13:ddff4bb7c24f
- Child:
- 15:8b76add42254
- Child:
- 16:ef72e302c653
diff -r ddff4bb7c24f -r 12fb3e326911 main.cpp --- a/main.cpp Thu Oct 06 12:10:51 2022 +0000 +++ b/main.cpp Thu Oct 06 12:12:39 2022 +0000 @@ -110,14 +110,10 @@ const float BATVOLTTRESHOLD = 3.0; // Treshold i volt int result; - /*Digital outs*/ - DigitalOut led1(LED1); - led1 = 0; // Turn off led 1 on the embed - /*Test if the voltage is below the threshold if so turn on go to pit mode*/ if (m3pi.battery() <= BATVOLTTRESHOLD ()){ result = 1; // Set goto pit condition - led1 = 1; // Turn on Led 1 + LED_Control(1, 1) m3pi.cls(); m3pi.locate(0,0); m3pi.printf("Going to");