Counter
argmafia
Posts: 30
Is there a way to integrate a real time/counter program to perform a function every necessary time needed??
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Main:
· DO
··· PAUSE 100
····motor1 = motor1·+ 1·// M1Count······ ' update motor "clock"
····IF (motor1 = 0) THEN················ ' update motor on roll-over
······' update motor 1
··· ENDIF
····motor2 = motor2 + 1 // M2Count
····IF (motor2 = 0) THEN
······' update motor·2
··· ENDIF
··· motor3 = motor3 + 1·// M3Count
····IF (motor3 = 0) THEN
······' update motor·3
··· ENDIF
· LOOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax