donkeyahoy
Well-known member
Hi. This simple sketch is not working properly. Can someone look at it and let me know if there is something wrong? When I first compile and then hit the pushbutton on the Teensy it does print the text, but after powering down and then powering up the LCD it does not display the text. It is backlit with power, but no text shown. Thank you in advance!
Teensy 3.1
Serial Enabled 16x2 LCD - White on Black 3.3V - https://www.sparkfun.com/products/9067
Arduino Teensyduino w/ SerLCD
Windows 7
wired power to LCD from 3.3V and GND to GND
wired the LCD RX to Teensy pin 10 TX2
// SparkFun Serial LCD example 1
// Clear the display and say "Hello World!"
// This sketch is for Arduino versions 1.0 and later
// If you're using an Arduino version older than 1.0, use
// the other example code available on the tutorial page.
// Use the softwareserial library to create a new "soft" serial port
// for the display. This prevents display corruption when uploading code.
#include <SoftwareSerial.h>
// Attach the serial display's RX line to digital pin 10
SoftwareSerial mySerial(9,10); // pin 10 = TX, pin 9 = RX (unused)
void setup()
{
mySerial.begin(9600); // set up serial port for 9600 baud
delay(500); // wait for display to boot up
}
void loop()
{
mySerial.write(254); // move cursor to beginning of first line
mySerial.write(128);
mySerial.write(" "); // clear display
mySerial.write(" ");
mySerial.write(254); // move cursor to beginning of first line
mySerial.write(128);
mySerial.write("VC REV-VAR LOOP ");
mySerial.write(" RPMS +0000 ");
while(1); // wait forever
}
Teensy 3.1
Serial Enabled 16x2 LCD - White on Black 3.3V - https://www.sparkfun.com/products/9067
Arduino Teensyduino w/ SerLCD
Windows 7
wired power to LCD from 3.3V and GND to GND
wired the LCD RX to Teensy pin 10 TX2
// SparkFun Serial LCD example 1
// Clear the display and say "Hello World!"
// This sketch is for Arduino versions 1.0 and later
// If you're using an Arduino version older than 1.0, use
// the other example code available on the tutorial page.
// Use the softwareserial library to create a new "soft" serial port
// for the display. This prevents display corruption when uploading code.
#include <SoftwareSerial.h>
// Attach the serial display's RX line to digital pin 10
SoftwareSerial mySerial(9,10); // pin 10 = TX, pin 9 = RX (unused)
void setup()
{
mySerial.begin(9600); // set up serial port for 9600 baud
delay(500); // wait for display to boot up
}
void loop()
{
mySerial.write(254); // move cursor to beginning of first line
mySerial.write(128);
mySerial.write(" "); // clear display
mySerial.write(" ");
mySerial.write(254); // move cursor to beginning of first line
mySerial.write(128);
mySerial.write("VC REV-VAR LOOP ");
mySerial.write(" RPMS +0000 ");
while(1); // wait forever
}