Hello John,
JOhn>>
CMCON = 7 ' Comparators OFF
ANSEL = 0 ' A/D OFF -- Port pins all digital
TRISIO = %00001000 ' All I/O but GPIO3 = outputs
I added 2 zeros to your TRISIO, and changed the position of your GPIO.3 switch
Loop:
High GPIO.2
Pause 500
Low GPIO.2
Pause 500
goto Loop
end.
I could not check this out, because I am at work, but this should be very close to what you are looking for.
DWayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks