Code for display with PCF2116 driver


hi, bought lcd display pcf2116 driver , can't work :smiley-sweat: tried google arduino code found code picaxe , pcf2116 datasheet.

this how picaxe code looks
code: [select]
i2cslave $ 74, i2cslow, i2cbyte
writei2c 0, (% 00100110,% 00001110,% 00000110)
writei2c 0, (1)
; display divided 4 blocks of 8 characters.
; writei2c 0, (127 + p) sets first line (first 8 characters), p = 1-8
; writei2c 0, (191 + p) sets first line (second 8 characters), p = 1-8
; writei2c 0, (159 + p) sets second line (first 8 characters), p = 1-8
; writei2c 0, (223 + p) sets second line (second 8 characters), p = 1 8
;and if more 1 character entered, characters written outside block.

;% 0000 1dcb
; d = 0: display off / 1 = on
; c = 0: cursor off / = 1 on
; b = 0: character @ cursor blinking / flashing = 1.
; if there written (at beginning) 8 characters block cursor not displayed.
; default cursor flashing.
; writei2c 0, (% 00001111); display on, cursor on, blink yes:
; blinking cursor on next position.
; writei2c 0, (% 00001110); display on, cursor on, flash no:
; cursor not blinking, there comma on next position
; writei2c 0, (% 00001101); display on, cursor off, blink yes:
; blinking cursor on next position.
; writei2c 0, (% 00001100); display on, cursor off, blink no:
; cursor not displayed.

;% 0001 s / c r / s 00
; move cursor , lefts ddram content unchanged
; writei2c 0, (% 00010000);
; cursor moves under last written character
; writei2c 0, (% 00011000);
; contents of blocks shifted left. extreme left characters aren't displayed.
; writei2c 0, (% 00011100);


in short manual came display (its in czech language) written: "display adress 0x74. display initialized 4 line display: start, i2c adress 0x74, 00000000, 00100110, 00001110, 00000110 (binary), stop. should see cursor , characters sent on i2c bus displayed"

i tried make code information found nothing worked , don't know i'm doing wrong. can please me? :smiley-sweat: 



Arduino Forum > Using Arduino > Displays > Code for display with PCF2116 driver


arduino

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO