Bidirectional Texts
With unidirectional RF text working, the next step is bidirectional texting. Each micro:bit transceiver (transmitter/receiver) will take input that you type into its terminal and send it through the radio. Each micro:bit will also receive radio messages and print them to the terminal.
Example project: terminal_chat_through_microbits
- If you are in a classroom, pair off and use your assigned channel.
- Enter and flash the program below into the first micro:bit module (Transceiver A).
- Update the first print statement, changing serial write line (“micro:bit transceiver A”) to serial write line (“micro:bit transceiver B”).
- Flash the project into the second micro:bit module (Transceiver B).
- Have fun typing messages to each other!
Transceiver A
Transceiver B