I have bought a Funduino 16x2 I2C LCD display thinking it would work with a PicAxe 20X2. The limited info that comes with it suggests that the I2C address is 0x27.
In trying a simple "Hello World" program using the address 0x27 I do not get anything on the LCD. The LCD is powered and I have a line of blocks which tells me the LCD is not fully initialised. The simple code is pasted below. Can anyone offer some guidance, surely I should be able to use this !!!
Is there any way to do a sweep of I2C addresses in case the supplied info is wrong. Thanks in anticipation
In trying a simple "Hello World" program using the address 0x27 I do not get anything on the LCD. The LCD is powered and I have a line of blocks which tells me the LCD is not fully initialised. The simple code is pasted below. Can anyone offer some guidance, surely I should be able to use this !!!
Is there any way to do a sweep of I2C addresses in case the supplied info is wrong. Thanks in anticipation
Code:
init: Pause 500; wait for initialisation
hi2csetup i2cmaster, 0x27, i2cslow, i2cbyte
pause 500
hi2cout 0,(254,1,255) ' clear display
Pause 50
hi2cout 0,(254,14,255) ' cursor on
pause 50
main: writei2c 0,(254,128,255) ; move cursor to start of first line
pause 10
writei2c 0, ("Hello World",255) ; output text
end