How do I use the Teensy3 with the Parallax serial LCD? I tried following the Arduino code at the bottom of this link and there was errors using SoftwareSerial:
http://learn.parallax.com/KickStart/27977
I connected Vin and GND and pin 6. Should I be using the hardware UART instead of this SoftwareSerial library?
Thanks for your help.
--------------------------------------------
const int TxPin = 6;
#include <SoftwareSerial.h>
SoftwareSerial mySerial = SoftwareSerial(255, TxPin);
void setup() {
pinMode(TxPin, OUTPUT);
digitalWrite(TxPin, HIGH);
mySerial.begin(9600);
delay(100);
mySerial.write(12); // Clear
mySerial.write(17); // Turn backlight on
delay(5); // Required delay
mySerial.print("Hello, world..."); // First line
mySerial.write(13); // Form feed
mySerial.print("from Parallax!"); // Second line
mySerial.write(212); // Quarter note
mySerial.write(220); // A tone
delay(3000); // Wait 3 seconds
mySerial.write(18); // Turn backlight off
}
void loop() {
}
http://learn.parallax.com/KickStart/27977
I connected Vin and GND and pin 6. Should I be using the hardware UART instead of this SoftwareSerial library?
Thanks for your help.
--------------------------------------------
const int TxPin = 6;
#include <SoftwareSerial.h>
SoftwareSerial mySerial = SoftwareSerial(255, TxPin);
void setup() {
pinMode(TxPin, OUTPUT);
digitalWrite(TxPin, HIGH);
mySerial.begin(9600);
delay(100);
mySerial.write(12); // Clear
mySerial.write(17); // Turn backlight on
delay(5); // Required delay
mySerial.print("Hello, world..."); // First line
mySerial.write(13); // Form feed
mySerial.print("from Parallax!"); // Second line
mySerial.write(212); // Quarter note
mySerial.write(220); // A tone
delay(3000); // Wait 3 seconds
mySerial.write(18); // Turn backlight off
}
void loop() {
}