Nikita Bocharov
/
FONA_CellPhone
ECE420 Project
Fork of FONA_CellPhone by
Diff: main.cpp
- Revision:
- 1:dba6dedf6cd3
- Parent:
- 0:851248a56628
- Child:
- 2:aaef20ac9044
diff -r 851248a56628 -r dba6dedf6cd3 main.cpp --- 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;