TRISIO = 1000
SIG1 = GPIO.3
OUTPUT1 = GPIO.1
OUTPUT2 = GPIO.2
LOOP:
OUTPUT1 = SIG1
OUTPUT2= 0
PAUSE 200
OUTPUT1 = 0
OUTPUT2 = SIG1
PAUSE 200
GOTO LOOP
Would this work? Im trying to alternate sending sig1 (a negative ground connection from another electronic device) back and fourth between the other two pins. Is there any kind of format I need to do while coding, for ex. does there need to be a space between OUTPUT1 = GPIO.1 or Can i Just do OUTPUT1=GPIO.1 and also can i even name the outputs and inputs to whatever I want as long explain it at the start of the code as I did? Also ive been trying to get started with the basics, But I just havent got a chance to pick up some leds.
Bookmarks