Hi Joep, what you need is a 6 pin pic10f200 with the following JAL
code ;)
Albert
include 10f200
pragma target clock 4_000_000
include delay
enable_digital_io()
pin_A0_direction = input
pin_A1_direction = output
pin_A1 = low
forever loop
if ( pin_A0 ) then
-- debounce
delay_100ms(1)
-- toggle
pin_A1 = ! pin_A1
while pin_A0 loop
end loop
end if
end loop
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.