Output pins

Buzzer

Member
Hello, quick question.

I'm trying to make the chip read the state of the outputs and copy them into b1 and b2. Then the outputs which were high would flash.

Code:
flashing:
let b6 = outpinsB              ;read output values
let b5 = outpinsC              ;read output values
let b7 = 1


for b7 = 1 to 6                           ;loop 6 times

        let pinsB = %00000000        ;outputs off
	let pinsC = %00000000               

	
pause 500
	
        let pinsB = b6                    ; any outputs that were on previously come back on
	let pinsC = b5

	
next b7
Does this make sense? Or is there an easier way? I didn't get any syntax errors.

Thanks :)
 

Technical

Technical Support
Staff member
Ok, but unless you have super-hero eyes you will need a pause before the next as well.
 
Top