Skip to content

Instantly share code, notes, and snippets.

View Logabe's full-sized avatar

Logan .B Logabe

  • New Zealand
View GitHub Profile
/* 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 + "."