Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- radio.setGroup(1);
- let currentSong = "";
- radio.onReceivedString(function (name: string) {
- currentSong = name;
- led.stopAnimation();
- })
- input.onButtonPressed(Button.A, function () {
- radio.sendNumber(-1);
- })
- input.onButtonPressed(Button.B, function () {
- radio.sendNumber(1);
- })
- basic.forever(function () {
- basic.showString(currentSong);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement