'''
Valentines Day Project 
'''
import radio
from codex import *
import random

my_channel = 6
radio.on()
radio.config(channel=my_channel)

text_colors = [RED, WHITE, PINK, MAGENTA, CYAN]
messages = [
    "Be my friend", 
    "Happy Heart Day!", 
    "Be mine!", 
    "So cute", 
    "Love in the air",
    "Text me"
    ]

# -- Main Program --
while True:
    if buttons.was_pressed(BTN_A):
        v_message = random.choice(messages)
        msg = v_message + "-AB"
        radio.send(msg)

    msg = radio.receive()
    if msg:
        t_color = random.choice(text_colors)
        display.print(msg, scale=2, color=t_color)
        pixels.fill(t_color)

