27220 Parallax Inc, 27220 Datasheet - Page 94

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
' -----[ Initialization ]--------------------------------------------------
Reset:
Lcd_Setup:
Download_Chars:
' -----[ Program Code ]----------------------------------------------------
Main:
Animation:
#IF _LcdReady #THEN
#ENDIF
DIRL = %11111110
PAUSE 100
LcdBus = %0011
PULSOUT E, 3
PAUSE 5
PULSOUT E, 3
PULSOUT E, 3
LcdBus = %0010
PULSOUT E, 1
char = %00101000
GOSUB LCD_Cmd
char = %00001100
GOSUB LCD_Cmd
char = %00000110
GOSUB LCD_Cmd
char = LcdCGRam
GOSUB LCD_Cmd
FOR idx1 = CC0 TO (Smiley + 7)
NEXT
char = LcdCls
GOSUB LCD_Cmd
PAUSE 250
FOR idx1 = 0 TO 15
NEXT
PAUSE 1000
FOR idx1 = 0 TO 15
#ERROR "Please use BS2p version: SW21-EX12-LCD_Chars.BSP"
READ idx1, char
GOSUB LCD_Out
READ (Msg1 + idx1), char
GOSUB LCD_Out
READ (Msg2 + idx1), newChar
' setup pins for LCD
' let the LCD settle
' 8-bit mode
' 4-bit mode
' multi-line mode
' disp on, no crsr or blink
' inc crsr, no disp shift
' download custom chars
' point to CG RAM
' prepare to write CG data
' build 4 custom chars
' get byte from EEPROM
' put into LCD CG RAM
' clear the LCD
' get message from EEPROM
' read a character
' write it
' wait 2 seconds
' cover 16 characters
' get new char from Msg2

Related parts for 27220