I'm working with the pi2go lite robot. This is my code
import pi2go, time
import sys
import tty
import termios
import time
pi2go.init()
def stepCount():
countL += 0
countR += 0
speed = 60
try:
pi2go.stepForward(60,16)
print stepCount
finally:
pi2go.cleanup()
The question is I am wondering how to count everytime the "pi2go.stepForward(60,16)" is used.