''' Student Mental Health Check-in Program The moods and colors can be adapted for your class. The program can be adapted for color-blindness by including print statements with the colors on the screen, or using shades of gray. Your own RGB colors can be defined and used. As an alternative, JPG images of moods can be used, but that is not an easy beginner-type of program. This version uses a loop to keep the program running. ''' from codex import * # Menu of moods display.print("Menu of moods") display.print() display.print("Up = I'm Great", color=DARK_GREEN) display.print("Down = I'm Okay", color=GREEN) display.print("Left = I'm meh", color=CYAN) display.print("Right = Struggling", color=ORANGE) display.print("A = Frustrated", color=PURPLE) display.print("B = Overwhelmed!", color=RED) while True: while True: if buttons.was_pressed(BTN_U): display.fill(DARK_GREEN) break if buttons.was_pressed(BTN_D): display.fill(GREEN) break if buttons.was_pressed(BTN_L): display.fill(CYAN) break if buttons.was_pressed(BTN_R): display.fill(ORANGE) break if buttons.was_pressed(BTN_A): display.fill(PURPLE) break if buttons.was_pressed(BTN_B): display.fill(RED) break