Commit 72bc512c authored by alaskalinuxuser's avatar alaskalinuxuser
Browse files

small updates.

parent 1ed5da3c
......@@ -6,6 +6,11 @@
* uint8_t dc = 5, // data select (display pin 4)
* uint8_t reset = 12, // reset (display pin 8)
* uint8_t sce = 13); // enable (display pin 5)
*
* I also use the following other pins:
* Pin A0-A5 for buttons 1 through 6.
* Any ground pin for buttons 1 through 6 (pull up resistor as well).
* The 3.3V power pin for buttons 1 through 6, and for the screen backlighting.
*/
/* This is an example sketch to test the core functionalities of SIMCom-based cellular modules.
......@@ -56,7 +61,7 @@
#define FONA_RX 11 // Microcontroller TX
// this is a large buffer for replies
char replybuffer[180];
char replybuffer[150];
#include <SoftwareSerial.h>
SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
......@@ -252,7 +257,7 @@ void loop() {
lcd.print("-0- ");
} else {
Serial.print(smsnum); Serial.println(F(" SMS's"));
lcd.println(smsnum-1);
lcd.println(smsnum);
}
Serial.print(F("> "));
updateScreen++;
......@@ -567,8 +572,8 @@ void loop() {
break;
}
case 96:{
for (int deleteALL = 0; deleteALL < 32; deleteALL++) {
if (fona.deleteSMS(0)) { // is the first one 0 or 1?
for (int deleteALL = 32; deleteALL >= 0; deleteALL--) {
if (fona.deleteSMS(deleteALL)) { // is the first one 0 or 1?
Serial.println(F("K"));
} else {
Serial.println(F("F"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment