Notificador de E-Mail, Ajuda na leitura do parsing da string enviada.

:open_mouth: a minha montagem é um pouco mais fina :smiley:

Agora uma duvida: tou a fazer uns testes em que mando algo por serie e mostre a mensagem no LCD, so que sempre que mando aparece apenas uma letra de cada vez e nao aparece a mensagem toda.

//Display temperature and voltage in Nokia 5510 LCD

#define aref_voltage 3.3 // we tie 3.3V to ARef and measure it with a multimeter!

//TMP36 Pin Variables
int tempPin = 1; //the analog pin the TMP36's Vout (sense) pin is connected to
//the resolution is 10 mV / degree centigrade with a
//500 mV offset to allow for negative temperatures
int tempReading; // the analog reading from the sensor
char serial;
char myString;
// The pins to use on the arduino to connect the lcd
#define PIN_SCE 7
#define PIN_RESET 6
#define PIN_DC 5
#define PIN_SDIN 4
#define PIN_SCLK 3

#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>

// pin 7 - Serial clock out (SCLK)
// pin 6 - Serial data out (DIN)
// pin 5 - Data/Command select (D/C)
// pin 4 - LCD chip select (CS)
// pin 3 - LCD reset (RST)
Adafruit_PCD8544 display = Adafruit_PCD8544(3, 4, 5, 7, 6);

#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2

void setup() {
// If you want to set the aref to something other than 5v
analogReference(EXTERNAL);
Serial.begin(9600);
display.begin();
// init done

// you can change the contrast around to adapt the display
// for the best viewing!
display.setContrast(50);

// display.display(); // show splashscreen
// delay(2000);
display.clearDisplay(); // clears the screen and buffer

// text display tests
display.setTextSize(1);
display.setTextColor(BLACK);
display.setCursor(10,20);
display.println("Thermometer");
display.setCursor(10,30);
display.println("by Diogo");
display.display();
delay(1500);
display.clearDisplay();
}
void loop()
{
String stringOne = "Hello String";
if(Serial.available())
{
display.clearDisplay();
serial = Serial.read();
stringOne = String(serial);
display.setTextSize(1);
display.setTextColor(BLACK);
display.setCursor(10,10);
display.println(stringOne);
display.display();
delay(2000);
display.clearDisplay();
}

display.setTextSize(1);
display.setTextColor(BLACK);
display.setCursor(10,10);
display.println("-.-");
display.display();

}

Para usar este codigo preciso usar a livraria da Adafruit. Overview | Nokia 5110/3310 Monochrome LCD | Adafruit Learning System