I just received my 16x2 character LCD display and my breadboard and my Pi Cobbler, and I'm trying to follow the instructions in
this tutorial, but I'm getting nothing but garbage on the screen.
using the code provided in the tutorial, I have created my own test program:
Code: Select all
#!/usr/bin/python
from Adafruit_CharLCD import Adafruit_CharLCD
from subprocess import *
from time import sleep, strftime
from datetime import datetime
lcd = Adafruit_CharLCD()
lcd.clear()
lcd.message("test")
when I run this program, it usually prints "WFW7" on the LCD, although sometimes it's "GFW7" or "7FW7". when I try to run the time/date/ip program, I get strange characters. I have double and triple-checked my wiring, and everything appears exactly as the tutorial says it should, but I just can't get good output to appear.
can someone please give me some idea where to start looking for the problem?