Advertisement
rric

am_anfang_hallo

Jan 9th, 2024 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.48 KB | None | 0 0
  1. # Am Anfang jedes Programmierkurses gibt's ein "Hallo, Welt!"-Programm
  2. # Copyright 2024 Roland Richter                      [Mu: BBC micro:bit]
  3.  
  4. import microbit
  5.  
  6. # Diese Schleife läuft endlos weiter
  7. while True:
  8.     microbit.display.scroll("Hallo")
  9.     microbit.display.scroll("Ich bin Roland")
  10.     microbit.display.show(microbit.Image.HAPPY)
  11.     microbit.sleep(2000)
  12.  
  13.     microbit.display.show("Ich unterrichte Programmieren")
  14.     microbit.display.show("am Khevenh\u00FCller Gymnasium Linz")
  15.     microbit.display.show(microbit.Image.STICKFIGURE)
  16.     microbit.sleep(2000)
  17.  
  18.     # QUIZ Du kannst zum Anzeigen von Text entweder
  19.     #   microbit.display.scroll("Hallo")
  20.     # oder
  21.     #   microbit.display.show("Hallo")
  22.     # verwenden. Welchen Unterschied siehst du?
  23.  
  24.  
  25. # ----------------------------------------------------------------------
  26. # This program is free software: you can redistribute it and/or modify
  27. # it under the terms of the GNU General Public License as published by
  28. # the Free Software Foundation, either version 3 of the License, or
  29. # (at your option) any later version.
  30. #
  31. # This program is distributed in the hope that it will be useful,
  32. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  33. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  34. # GNU General Public License for more details.
  35. #
  36. # You should have received a copy of the GNU General Public License
  37. # along with this program.  If not, see <https://www.gnu.org/licenses/>.
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement