Open Roberta
Show that somebody knows the secret
Background
We try to showcase the capabilities of the Lab and the robots with interesting programs.
This is a NEPO task, make sure to read the info.
Task
write a program for the Calliope simulator, that allows you to check whether another person knows a secret code.
- the program enters "learn mode", if the button A is pressed for more than 2 sec.
- now the program can learn a secret key: press A and B for a secret pattern.
- "learn mode" ends, if the button A is pressed for more than 2 sec.
"learn mode" cannot be entered twice.
the program enters "identify mode", if the button B is pressed for more than 2 sec.
- now somebody can show, that he/she knowe the secret.
- the led turns green or red, depending on the result
- By pressing button B for more than 2 sec, the "identify mode" is entered again.
Deliverables
A working program.
Task tags
Students who completed this task
Elseif, PolyCode, Blippy, Aria, RohanC