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.
Fork of FONA_CellPhone by
Diff: main.cpp
- Revision:
- 1:dba6dedf6cd3
- Parent:
- 0:851248a56628
- Child:
- 2:aaef20ac9044
--- a/main.cpp Thu Mar 10 05:25:28 2016 +0000
+++ b/main.cpp Thu Mar 10 05:52:15 2016 +0000
@@ -42,19 +42,20 @@
// this is a large buffer for replies
char replybuffer[255];
-// Note: there is only one hardware serial on the "nRF51 DK" board, so the SoftSerial is used instead. However it doesn't 100% work.
+
Serial pcSerial(USBTX, USBRX);
Adafruit_FONA fona(FONA_TX, FONA_RX, FONA_RST, FONA_RI);
+uLCD_4DGL uLCD(p28,p27,p30);
// Turn on a LED when somebody call the FONA
-DigitalOut led1(LED1); // 1 = LED OFF on the "nRF51 DK" board
+DigitalOut led1(LED1);
class FonaEventListener : public Adafruit_FONA::EventListener {
virtual void onRing() {
- led1 = 1; // 0 = LED ON on the "nRF51 DK" board
+ led1 = 1;
}
virtual void onNoCarrier() {
- led1 = 0; // 1 = LED OFF on the "nRF51 DK" board
+ led1 = 0;
}
};
FonaEventListener fonaEventListener;
