Example program demonstrate the use of the User LEDs and the User Button. The example also initializes the I2C3 Bus for the battery charger BQ24295, sets the battery charger and the cellular module driver, powers up the cellular module. However, the UART2 , which is used for communicating with the module, is not configured. Hence, the Serial USB Sniffer could be used for exercising AT commands from a development PC.

Dependencies:   ublox-cellular-base ublox-cellular-driver-gen battery-charger-bq24295 gnss

Revision:
5:8f44dab9cb6b
Parent:
3:b9051f3f2fcd
Child:
6:4d61a0f32573
--- a/main.cpp	Thu Feb 22 07:19:57 2018 +0000
+++ b/main.cpp	Fri Feb 23 18:26:53 2018 +0500
@@ -17,7 +17,6 @@
 #include "mbed.h"
 #include "gnss.h"
 #include "battery_charger_bq24295.h"
-#include "UbloxCellularDriverGen.h"
 #include "onboard_modem_api.h"
 
 // Set the minimum input voltage limit for the BQ24295 to 3.8 Volt
@@ -56,7 +55,6 @@
 
 // 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