The four data lines (4 bit mode) have to be on the same port going from 0-3 or 4-7.
The othe two lines can be anywhere.
Example:
This is all standard.Code:DEFINE LCD_DREG PORTC DEFINE LCD_DBIT 0 DEFINE LCD_RSREG PORTD DEFINE LCD_RSBIT 1 DEFINE LCD_EREG PORTD DEFINE LCD_EBIT 0 DEFINE LCD_BITS 4 DEFINE LCD_LINES 2 DEFINE LCD_COMMANDUS 2000 DEFINE LCD_DATAUS 50
Darrel has a trick called LCD AnyPin that does as the name implies. Non standard
Try something likecan i use something like
lcdout $fe, 1
pause 500
lcdout fan1 (a) fan2 (b)
if temperature =21 then let (a)=on and (b)=off
if temperature =23 then let (a)=off and (b)= on
If temperature is whatever gotsub a subroutine.






Bookmarks