This was sometime discussed but maybe I dont remember exact answear . Probably syntax was "!Call _initlcd" SO exclamation sign must precede the Call if you want to call some routine from library.
Thank you EDC
I remembered there was a discussion I searched but could not find it
Even closer now I just have to work out the calls to make
So far I have one and a half LCDs need to initialize he other half (chip)
I am using a 2 x 4 cmos switch to chose CS1 & CS2
Regards Paul
If they should show different content then I agree but if content is same on the both then I link them parallely and most of the "non serial" LCD`s works fine
I have it working two 64 x 128 LCDs
I could have four as its a 2 x 4 switch
I had to select CS1 & CS2 manually
Then initialize both chips at once
also need to put pull down resistors on CS1 & CS2 as the switch goes high Z when not selected.
regards Paul
Code:
Glcd_cs1 AliasPortc.2
Glcd_cs2 AliasPortc.3
'select port 1 on switch ResetPortd.7 SetPortd.6 Wait1 Set Glcd_cs1
Set Glcd_cs2
!call _Init_lcd
Reset Glcd_cs1
Reset Glcd_cs2
Wait1 'select port 0 on switch ResetPortd.7 ResetPortd.6 Wait1 Set Glcd_cs1
Set Glcd_cs2
!call _Init_lcd
Reset Glcd_cs1
Reset Glcd_cs2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum