Advertisement
rric

a_scrolling_hello

Jan 22nd, 2024 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.22 KB | None | 0 0
  1. # A small "Hello World" program for Mu's BBC micro:bit mode
  2. # Copyright 2023, 2024 Roland Richter                [Mu: BBC micro:bit]
  3.  
  4. import microbit
  5.  
  6. while True:
  7.     microbit.display.scroll("Hello")
  8.     microbit.display.scroll("I am Roland")
  9.     microbit.display.show(microbit.Image.HAPPY)
  10.     microbit.sleep(2000)
  11.     microbit.display.scroll("I teach programming")
  12.     microbit.display.scroll("at Khevenh\u00FCller Gymnasium Linz.")
  13.     microbit.display.show(microbit.Image.STICKFIGURE)
  14.     microbit.sleep(2000)
  15.  
  16. # ----------------------------------------------------------------------
  17. # This program is free software: you can redistribute it and/or modify
  18. # it under the terms of the GNU General Public License as published by
  19. # the Free Software Foundation, either version 3 of the License, or
  20. # (at your option) any later version.
  21. #
  22. # This program is distributed in the hope that it will be useful,
  23. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25. # GNU General Public License for more details.
  26. #
  27. # You should have received a copy of the GNU General Public License
  28. # along with this program.  If not, see <https://www.gnu.org/licenses/>.
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement