Esempio n. 1
0
def ei_r():
    if GPIO.INPUT(pin4):
        counter_R+=1
    elif GPIO.INPUT(pin4)==GPIO.LOW:
        counter_R-=1
Esempio n. 2
0
def ei_l():
    if GPIO.INPUT(pin3):
        counter_L+=1
    elif GPIO.INPUT(pin3)==GPIO.LOW:
        counter_L-=1