Hi,
I have a 4X20 LCD that I would to use with my BBII. I just keep getting jibberish on the screen. Any one have any luck with this LCD?
This is what I tried
SEROUT 8, i19200, [254,12 , 2, 1, "HELLOS"] '$FE,$0C,2,1]
They had some sample code for a basic stamp
[code] 'Brightness/Contrast
'Parameter Length Description
'[brightness] 1 Byte Set backlight brightness (0 – 250) $FE, $03
'[contrast] 1 byte Set LCD contrast (0 – 100) $FE, 04
'Set Cursor Position $FE $0C [col] [row] (0-3) AND col (0-19)
'Example: SEROUT 1, 84, 25, $FE, $0C, 2, 1, “text”]
'= transmit On PIN1, 9600 Baud, 25 type speed, row 3, col 2, LCD shows “text” On screen
'Clear Screen $FE $14
'Example: SEROUT 1, 84, $FE $14] where 1 is the pin and 84 is the baud rate
'<<<<<<<<<<<<<<<<< BEGIN TEXT CODE >>>>>>>>>>>>>>>>>>>>>>
PAUSE 2000 'I like to give the LCD 2 seconds to initialize
SEROUT 1, 84, $FE, $0A] 'Ensures that the display is on
PAUSE 100
SEROUT 1, 84, $FE, $14] 'Ensures that the screen is cleared
PAUSE 100
SEROUT 1, 84, $FE, $03, 150] 'Sets the brightness (0-250) *currently at 150
PAUSE 200
SEROUT 1, 84, 85, “Hello World!”] 'Some text sent to the LCD, defaults to row 0, col 0
PAUSE 1500
SEROUT 1, 84, 25, $FE, $0C, 1, 0, “This LCD is awesome”] 'Moves the cursor to row 2, col 1
PAUSE 1000
SEROUT 1, 84, 25, $FE, $0C, 3, 1, “and easy to use”] 'Moves the cursor to row 4, col 2
PAUSE 1500 'waits 1.5 seconds
SEROUT 1, 84, $FE, $14] 'Clears the screen
SEROUT 1, 84, 95, $FE, $0C, 1, 2, “SLOW TEXT HERE”] 'the “95” is the type speed (higher value = slower)
PAUSE 4000 'waits 4 seconds
SEROUT 1, 84, $FE, $14] 'Clears the screen
PAUSE 200
'<<<<<<<<<<<<<<<<< END TEXT CODE >>>>>>>>>>>>>>>>>>>>>>[/code]