Custom Characters BenkyLCDdriver
Does anyone have some demo code for setting and displaying custom characters using the BenkyLCDdriver? I tried this way, but it just displays eight characters from the DAT array instead of setting the custom character. What am I missing?
BenkyLCDdriver.spin
CON
_clkmode = xtal1 + pll16x ' System clock settings
_xinfreq = 5_000_000
LCDBasePin = 1
OBJ
LCD: "BenkyLCDdriver" 'Declare LCD display driver
VAR
LONG maxT ' Variable used by LCD driver
PUB Main
LCD.start( LCDBasePin,0 ) ' Start LCD Display
maxT:=LCD.getMax
waitcnt(clkfreq + cnt) ' Wait 1 s before starting
LCD.exec( LCD#CMD_SETCHAR, @custom1)
repeat
DAT
custom1 byte 111[8], 0
BenkyLCDdriver.spin

Comments
LCD.exec( LCD#CMD_INSTR, %01000000 + charNumber * 8 )
with a charNumber between 0 and 7 and then send 8 bytes with the LCD#CMD_SETCHAR command. With each byte sent to the display the cgram pointer is increased automatically. So, after writing one character the pointer points to the next character.
Thanks for replies! Sorry, I misplaced the demos for driver and wasn't able to find it on the OBEX any more (?) Could you please post the demo or complete driver archive or direct me to where it is on the OBEX now?
http://obex.parallax.com/object/270