Advertisement
Guest User

Untitled

a guest
Jul 7th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. radio.setGroup(1);
  2.  
  3. let currentSong = "";
  4.  
  5. radio.onReceivedString(function (name: string) {
  6.     currentSong = name;
  7.     led.stopAnimation();
  8. })
  9.  
  10. input.onButtonPressed(Button.A, function () {
  11.     radio.sendNumber(-1);
  12. })
  13.  
  14. input.onButtonPressed(Button.B, function () {
  15.     radio.sendNumber(1);
  16. })
  17.  
  18. basic.forever(function () {
  19.     basic.showString(currentSong);
  20. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement