This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This is a piece of code my friend and I wrote for the Micro:Bit which turns it into a Morse-Code-based pager. | |
Button A sends '.', Button B sends '-', and pressing the two together sends a space. | |
The Micro:Bit can then be shaken to send the character. */ | |
enum RadioMessage { | |
message1 = 49434 | |
} | |
input.onButtonPressed(Button.A, function () { | |
CharacterToDecode = "" + CharacterToDecode + "." |