Hello everyone.
I have a pop-bot with a serial LCD screen (SLCD16x2). I want to display text on it. The example program from the pop-bot .pdf manual works with the software Arduino 0023 and not with the Arduino 1.0.1 software. I would like to use it with Arduino v1.0.1. So I'm trying to convert it. But I failed.
This is the original example code:
/*******************************************************************************
* POP-BOT V1.0
* Filename : SimpleLCD.pde
* Show message on SLCD
********************************************************************************/
#include <SoftwareSerial.h>
#define rxPin 16
#define txPin 16
SoftwareSerial MySerial = SoftwareSerial(rxPin,txPin);
void setup(){
digitalWrite(txPin,HIGH);
delay(1000);
pinMode(txPin,OUTPUT);
MySerial.begin(9600);
delay(1000);
}
void loop(){
MySerial.print(0xFE,BYTE);
MySerial.print(0x80,BYTE);
MySerial.print("POP-BOT");
MySerial.print(0xFE,BYTE);
MySerial.print(0xC0,BYTE);
MySerial.print("Hello World !");
while(1);
}
I have tried replacing the last couple of lines with the following.
void loop(){
Serial.write(0xFE);
Serial.write(0x80);
Serial.print("Berendje");
Serial.write(0xC0);
Serial.print("GHalloo");
while(1);
But the only thing that is printed is 1 colored field in the left above corner.
What am I doing wrong?
There are many examples for LCD's, but they don't apply to my situation, because they are all for parallel controlled LCD's and I have a serial controlled one.
What have I tried:
-Reading a lot on this forum, but I haven't found topics answering my questions.
-Checking the example programs
-Reading the arduino FAQ's and the reference page.