Update avanceret/multi-radio/main.py
This commit is contained in:
@@ -5,6 +5,20 @@ import radio
|
|||||||
radio.on()
|
radio.on()
|
||||||
radio.config(channel=7)
|
radio.config(channel=7)
|
||||||
|
|
||||||
|
# Menu for flere funktioner
|
||||||
|
MENU = {
|
||||||
|
1: "Beskeder",
|
||||||
|
2: "Skift kanal"
|
||||||
|
}
|
||||||
|
|
||||||
|
BESKED = {
|
||||||
|
1: "Hej der!",
|
||||||
|
2: "Hvordan går det?"
|
||||||
|
}
|
||||||
|
|
||||||
|
kanalvælger = 0
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# Send besked med knap A
|
# Send besked med knap A
|
||||||
if button_a.was_pressed():
|
if button_a.was_pressed():
|
||||||
|
Reference in New Issue
Block a user