This is a program that lets you send events (with optional integer arguments). You can call the events what you want, but the names must match on the micro:bit end ...
This repository can be added as an extension in MakeCode. This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.