What does "smeghead" mean?Code:LCDOUT $fe,$c0,0 LCDOUT $fe,$c1,0 LCDOUT $fe,$c2,0 LCDOUT $fe,$c3,0 LCDOUT $fe,$c4,0 LCDOUT $fe,$c5,0 LCDOUT $fe,$c6,0
What does "smeghead" mean?Code:LCDOUT $fe,$c0,0 LCDOUT $fe,$c1,0 LCDOUT $fe,$c2,0 LCDOUT $fe,$c3,0 LCDOUT $fe,$c4,0 LCDOUT $fe,$c5,0 LCDOUT $fe,$c6,0
Dave
Always wear safety glasses while programming.
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.
Dave
Always wear safety glasses while programming.
cheers again have already wrote 4 subroutines for the various temperature fan states . just wondered if i could do it the other way will have a search for darrels ant pin routine
Bookmarks