Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Dieser micro:bit ist Anfang einer "Nachrichten-Kette": Nachrichten werden
- # angezeigt und zum nächsten Nachbarn weiter gesendet
- # Copyright 2023, 2024 Roland Richter [Mu: BBC micro:bit]
- import microbit
- import radio
- def send_text(txt):
- microbit.display.scroll(str(txt))
- radio.config(power=7)
- radio.send(str(txt))
- microbit.sleep(100)
- radio.on()
- radio.config(channel=0)
- satz = ["Servus", "im", "Talente", "Kurs", "!"]
- while True:
- for wort in satz:
- send_text(wort)
- # ----------------------------------------------------------------------
- # 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