Hi, I see lots of info on driving this kit (LCD-10097) with an arduino uno and I’ve successfully done that with this assembled kit. Now I’d like to use my FTDI Basic Breakout board to program the chip to run as stand alone alarm clock. I am getting a blank screen when I upload the following code. Do I need to momentarily pull the RST from the expansion header to ground to reset the chip once it’s been programmed? Did I screw up the backlight setting? I’m assuming that I can leave it connected to the FTDI for power for now.
Thanks for any help!
#include <LiquidCrystal.h>
// --- ARDUINO PIN DEFINITIONS
uint8_t RSPin = 2;
uint8_t RWPin = 3;
uint8_t ENPin = 4;
uint8_t D4Pin = 5;
uint8_t D5Pin = 6;
uint8_t D6Pin = 7;
uint8_t D7Pin = 8;
uint8_t BLPin = 9;
LiquidCrystal lcd(RSPin, RWPin, ENPin, D4Pin, D5Pin, D6Pin, D7Pin);
void setup(){
lcd.begin(16, 2);//columns, rows
// Set up the backlight
pinMode(BLPin, OUTPUT);
setBacklight(200);
delay(1000);
lcd.setCursor(0,0); //column, row
lcd.print("Welcome");
lcd.setCursor(0,1);
lcd.print("Time Traveler");
delay(2000);
}
void loop(){
}
}
void setBacklight(uint8_t backlightSetting)
{
analogWrite(BLPin, backlightSetting);
}