| ROBODYSSEY SYSTEMS LLC |
|
Product Catalog Code Page Policies Gallery Whats New Press Releases Resources Links Contact Us About Us Press Educators Page BasicX and Robotics book After School Mini Challenge! Free Robots to Kids Hack-A-Toy Shopping Cart |
Page6_7
|
| PIC Home | Previous Page | Next Page | Next Chapter |

PROGRAM NAME CREATED VIA NEW PROJECT!!
COPY AND PASTE FROM NEXT LINE DOWN
'*********************
Sub Procedure Dlay100
Delay_ms(100)
End Sub
'*********************
Sub Procedure scroll
PortB = %01001001
Dlay100
PortB = %10010010
Dlay100
PortB = %00100100
Dlay100
End Sub
'*********************
Sub Procedure Sw1
While Testbit(PortA,2) = 0
PortB = %11110000
Dlay100
PortB = %00000000
Dlay100
Wend
End Sub
'*********************
Main:
TrisB = %00000000
TrisA = %00001111
CMCON = %00000111
If Testbit(PortA,2) = 0 Then
Sw1
End If
scroll
Goto Main
End.
| PIC Home | Previous Page | Next Page | Next Chapter |
| Home | Product Catalog | Shopping Cart | Resources | Links |
| Code Page | Policies | Gallery |