All the displays have the same commands set which makes code portable. The text ones have less commands.
All the commands must be terminated by CR (13) or null (0), this is probably your problem.
Go to http://www.digole.com/ and download the user manual.
Here is a simple example:
Code:
OLED_BAUDRATE con 84 '9600
OLED var PORTA.5 'serout2 pin
'Allow time for the display to initialize.
'You can download (just once) your own graphic or a set of commands as a splash screen. Make nicer devices!
'The splash screen is displayed right at the power up so you won't get a black screen for the initialisation time.
PAUSE 1000
'CurSor off
serout2 OLED, OLED_BAUDRATE, ["CS", 0]
'CLear screen
serout2 OLED, OLED_BAUDRATE, ["CL", 0]
'TT command to display a TexT string
'Display Hello world
serout2 OLED, OLED_BAUDRATE, ["TTHello world", 0]
'TRT command to move text cursor to next line(call Text ReTurn)
serout2 OLED, OLED_BAUDRATE, ["TRT", 0]
'Set Font 10
serout2 OLED, OLED_BAUDRATE, ["SF", 10, 0]
'Display Hello world again!
serout2 OLED, OLED_BAUDRATE, ["TTHello world again!", 0]
I'll share more with my "fun project". I'm just too busy...
The KS0108 doesn't have a backpack, you canget one there http://www.digole.com/index.php?productID=535
Bookmarks