Code: Select all
if Button(PORTD, 5, 10, 1) then
if (resettrue = 0) then
if (portc.1) then
portC.1 = 0
else
portC.1 = 1
end if
resettrue = 1
end if
end if
if Button(PORTD, 5, 10, 0) then
resettrue = 0
end if
thx