Code is posted above.
Schematic is simple, there are 4 MPSA42 transistors, each of which is connected via 10K resistor to corresponding ports (ZERO, ONE, TWO, TRE) as shown in code. GPIO.5 is tied via 10K resistor to VDD, and button pulls it to zero.
Only addition to code above is
Code:koka: if GPIO.5=0 THEN 'if pin pressed goto tavi 'launch rotation ENDIF pause 1 GOTO KOKA




Bookmarks