'''
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]

# -- Main Program --
while True:
    if buttons.was_pressed(BTN_A):
        msg = "Be my friend" + "-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)
