added console prints
This commit is contained in:
@@ -20,9 +20,10 @@ BUTTON_NEXT = 27
|
||||
BUTTON_TEAM1 = 22
|
||||
BUTTON_TEAM2 = 17
|
||||
|
||||
for btn_pin in (BUTTON_START_STOP, BUTTON_NEXT, BUTTON_TEAM1, BUTTON_TEAM2):
|
||||
for btn_pin in (BUTTON_NEXT, BUTTON_TEAM1, BUTTON_TEAM2):
|
||||
GPIO.setup(btn_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
||||
|
||||
GPIO.setup(BUTTON_START_STOP, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
||||
# --- LCD SETUP ---
|
||||
lcd = CharLCD(I2C_CHIP, I2C_ADDRESS)
|
||||
lcd.clear()
|
||||
@@ -121,12 +122,14 @@ def start_stop_button_callback(channel):
|
||||
timer_thread.start()
|
||||
|
||||
def next_button_callback(channel):
|
||||
print("Next Button Pressed")
|
||||
global current_word
|
||||
with lock:
|
||||
if timer_running:
|
||||
pick_random_word()
|
||||
|
||||
def team1_button_callback(channel):
|
||||
print("Team 1 Button Pressed")
|
||||
global score_t1
|
||||
with lock:
|
||||
if timer_running:
|
||||
@@ -139,6 +142,7 @@ def team1_button_callback(channel):
|
||||
lcd_show_scores()
|
||||
|
||||
def team2_button_callback(channel):
|
||||
print("Team 2 Button Pressed")
|
||||
global score_t2
|
||||
with lock:
|
||||
if timer_running:
|
||||
|
||||
Reference in New Issue
Block a user