# Debate Moderator from machine import Pin from time import sleep_ms ButtonA = Pin(15, Pin.IN, Pin.PULL_UP) ButtonB = Pin(14, Pin.IN, Pin.PULL_UP) ATime = 10.0 BTime = 10.0 while(1): if(ButtonA.value() == 0): if(ATime > 0): ATime -= 0.1 if(ButtonB.value() == 0): if(BTime > 0): BTime -= 0.1 print(ATime, BTime) sleep_ms(100)