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: gnss battery-charger-bq24295
Diff: main.cpp
- Revision:
- 1:e11c75d931b5
- Parent:
- 0:25fcf12b0ba2
- Child:
- 2:c95852ac6953
diff -r 25fcf12b0ba2 -r e11c75d931b5 main.cpp
--- a/main.cpp Tue Sep 19 12:23:17 2017 +0000
+++ b/main.cpp Tue Sep 26 14:49:17 2017 +0000
@@ -37,18 +37,18 @@
// Delay between LED changes in second
volatile float delay = 0.5;
-//To check if the user pressed the User Button or not
+// To check if the user pressed the User Button or not
void threadBodyUserButtonCheck(void const *args){
float delayToggle = delay;
while (1){
if (userButton.read() == 1 ) {
- //User Button is pressed
+ // User Button is pressed
delay = 0.1;
//Indicate the button is pressed
ledYellow = 0;
}
else {
- //User button is released
+ // User button is released
delay = 0.5;
//Turn off the Yellow LED on Ethernet socket
ledYellow = 1;
@@ -64,16 +64,16 @@
int main()
{
- //Initialised the modem
+ // Initialised the modem
onboard_modem_init();
- //Power up the modem
+ // Power up the modem
onboard_modem_power_up();
- //Create threadUserButtonCheck thread
+ // Create threadUserButtonCheck thread
Thread threadUserButtonCheck(threadBodyUserButtonCheck);
- //Set the LED states
+ // Set the LED states
ledRed = 0;
ledGreen = 1;
ledBlue = 1;