Snap Switch

motherhugger

New Member


is this connection right?


if the switch is pressed it is high right?


i cant understand the manual...
im using picaxe 28x1 starter pack...

thank you in advance
 

motherhugger

New Member
so the connection is correct? no need for resistor? in all 3-pin snap switch..the right most is the +V and the middle is GND?

so this code:


main:

if pin 2 = 1 then light
goto main

light:
high 0
goto main


if the switch is pressed LED on out 0 lights up....


hope im correct coz im gonna test it later... im just afraid i would fry the thing...

thank you for your help...
 
Top