import board, time, adafruit_touchscreen
from adafruit_pyportal import PyPortal

ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XL, board.TOUCH_XR, board.TOUCH_YD, board.TOUCH_YU)

meals=["/breakfastTime.bmp","/lunchTime.bmp","/dinnerTime.bmp"]

pyportal = PyPortal()

mealtime=0

while True:
    tou=ts.touch_point
    if tou:
        # TODO: do something when touch is detected
        pyportal.set_background(meals[mealtime])
        mealtime=mealtime+1
        if mealtime==3:
            mealtime=0
        time.sleep(3)