Quote Originally Posted by skimask;49770[code
DEFINE OSC 20
pause 500
trisa = 0 : trisb = 0 : trisc = 0 : trisd = 0
trise = 0 : trisf = 0 : trisg = 0 : trish = 0
start:
porta = $ff : portb = $ff : portc = $ff
portd = $ff : porte = $ff : portf = $ff
portg = $ff
pause 300
porta = 0 : portb = 0 : portc = 0 : portd = 0
porte = 0 : portf = 0 : portg = 0
pause 300
goto start
end
[/code]
just wondering if doing it this way decreases code size too, or if it just makes for less typing??? im working on writing some code for this project (if i can ever get the board to work) and i know it would make the code smaller to look at if i did it as above, but i think it would be harder to write since i have labeled all my ports for what they do, so when i write it, i use those "labels"....