Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Am Anfang jedes Programmierkurses gibt's ein "Hallo, Welt!"-Programm
- # Copyright 2024 Roland Richter [Mu: BBC micro:bit]
- import microbit
- # Diese Schleife läuft endlos weiter
- while True:
- microbit.display.scroll("Hallo")
- microbit.display.scroll("Ich bin Roland")
- microbit.display.show(microbit.Image.HAPPY)
- microbit.sleep(2000)
- microbit.display.show("Ich unterrichte Programmieren")
- microbit.display.show("am Khevenh\u00FCller Gymnasium Linz")
- microbit.display.show(microbit.Image.STICKFIGURE)
- microbit.sleep(2000)
- # QUIZ Du kannst zum Anzeigen von Text entweder
- # microbit.display.scroll("Hallo")
- # oder
- # microbit.display.show("Hallo")
- # verwenden. Welchen Unterschied siehst du?
- # ----------------------------------------------------------------------
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <https://www.gnu.org/licenses/>.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement