from lcd1602 import LCD
import utime as time 
from machine import Pin

lcd = LCD()

menu_items = [
    ("Burger", "RM5.99"),
    ("Pizza", "RM8.99"),
    ("Pasta", "RM6.99"),
    ("Salad", "RM4.99"),
    ("Drink", "RM1.99"),
]

current_index = 0

def display_menu(index):
    lcd.clear()
    item = menu_items[index]
    lcd.write(0,0, f"{item[0]}")
    lcd.write(0,1, f"{item[1]}")

display_menu(current_index)

while True:
    time.sleep(1)
    current_index = (current_index + 1)% len(menu_items)
    display_menu(current_index)