<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://microbit.eeducation.at/index.php?action=history&amp;feed=atom&amp;title=L%C3%B6sung_Treppeninstrument</id>
	<title>Lösung Treppeninstrument - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://microbit.eeducation.at/index.php?action=history&amp;feed=atom&amp;title=L%C3%B6sung_Treppeninstrument"/>
	<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=L%C3%B6sung_Treppeninstrument&amp;action=history"/>
	<updated>2026-04-29T21:02:42Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in microbit - Das Schulbuch</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=L%C3%B6sung_Treppeninstrument&amp;diff=7327&amp;oldid=prev</id>
		<title>Leonie.dreher am 13. Februar 2022 um 14:50 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=L%C3%B6sung_Treppeninstrument&amp;diff=7327&amp;oldid=prev"/>
		<updated>2022-02-13T14:50:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 13. Februar 2022, 16:50 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Tipps: Hilfe zur Programmierung ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Tipps: Hilfe zur Programmierung ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Da der Ton immer wieder erklingen soll, beginnen wir mit einer Schleife. Mit dem Block “dauerhaft führt der micro:bit die von uns programmierten Schritte immer wieder durch.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Da der Ton immer wieder erklingen soll, beginnen wir mit einer Schleife. Mit dem Block “dauerhaft&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; &lt;/ins&gt;führt der &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BBC &lt;/ins&gt;micro:bit die von uns programmierten Schritte immer wieder durch.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Jeder BBC micro:bit spielt einen Ton. Wir müssen &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;als &lt;/del&gt;für jeden BBC micro:bit  einen eigenen Code erstellen. In diesem Beispiel ist es das mittlere C. Damit wir den Überblick behalten, sorgen wir zuerst dafür, dass der Ton immer angezeigt wird.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Jeder BBC micro:bit spielt einen Ton. Wir müssen &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;also &lt;/ins&gt;für jeden BBC micro:bit  einen eigenen Code erstellen. In diesem Beispiel ist es das mittlere C. Damit wir den Überblick behalten, sorgen wir zuerst dafür, dass der Ton immer angezeigt wird.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;spoiler text=&amp;quot;Block&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;spoiler text=&amp;quot;Block&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l44&quot;&gt;Zeile 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Es fehlt noch der Ton. Daher brauchen wir einen Block, der beschreibt, was passieren soll wenn Pin1 (und damit die Taste auf dem Klavier) gedrückt ist.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Es fehlt noch der Ton. Daher brauchen wir einen Block, der beschreibt, was passieren soll&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;wenn Pin1 (und damit die Taste auf dem Klavier) gedrückt ist.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l67&quot;&gt;Zeile 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wir haben uns für einen ¼ Schlag entschieden, damit man Töne schneller hintereinander abspielen kann.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wir haben uns für einen ¼ Schlag entschieden, damit man Töne schneller hintereinander abspielen kann.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit ist euer Programm für einen BBC micro:bit fertig. Passt das Programm nun für jede &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;anderen Tasten &lt;/del&gt;an. Jeder Ton, der abgespielt werden soll, soll auch als dieser Ton auf der LED-Matrix gezeigt werden (d → Mittleres D usw.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit ist euer Programm für einen BBC micro:bit fertig. Passt das Programm nun für jede &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;andere Taste &lt;/ins&gt;an. Jeder Ton, der abgespielt werden soll, soll auch als dieser Ton auf der LED-Matrix gezeigt werden (d → Mittleres D usw.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Treppeninstrument|Zurück zur Aufgabe]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Treppeninstrument|Zurück zur Aufgabe]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;htmlet&amp;gt;makecode_embed&amp;lt;/htmlet&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;htmlet&amp;gt;makecode_embed&amp;lt;/htmlet&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key microbit:diff:1.41:old-6978:rev-7327:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leonie.dreher</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=L%C3%B6sung_Treppeninstrument&amp;diff=6978&amp;oldid=prev</id>
		<title>Leonie.dreher am 16. Januar 2022 um 18:02 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=L%C3%B6sung_Treppeninstrument&amp;diff=6978&amp;oldid=prev"/>
		<updated>2022-01-16T18:02:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 16. Januar 2022, 20:02 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l69&quot;&gt;Zeile 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 69:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit ist euer Programm für einen BBC micro:bit fertig. Passt das Programm nun für jede anderen Tasten an. Jeder Ton, der abgespielt werden soll, soll auch als dieser Ton auf der LED-Matrix gezeigt werden (d → Mittleres D usw.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit ist euer Programm für einen BBC micro:bit fertig. Passt das Programm nun für jede anderen Tasten an. Jeder Ton, der abgespielt werden soll, soll auch als dieser Ton auf der LED-Matrix gezeigt werden (d → Mittleres D usw.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Treppeninstrument|Zurück zur Aufgabe]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;htmlet&amp;gt;makecode_embed&amp;lt;/htmlet&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;htmlet&amp;gt;makecode_embed&amp;lt;/htmlet&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key microbit:diff:1.41:old-6977:rev-6978:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leonie.dreher</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=L%C3%B6sung_Treppeninstrument&amp;diff=6977&amp;oldid=prev</id>
		<title>Leonie.dreher: Die Seite wurde neu angelegt: „== Tipps: Hilfe zur Programmierung ==  Da der Ton immer wieder erklingen soll, beginnen wir mit einer Schleife. Mit dem Block “dauerhaft führt der micro:bit…“</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=L%C3%B6sung_Treppeninstrument&amp;diff=6977&amp;oldid=prev"/>
		<updated>2022-01-16T18:01:11Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== Tipps: Hilfe zur Programmierung ==  Da der Ton immer wieder erklingen soll, beginnen wir mit einer Schleife. Mit dem Block “dauerhaft führt der micro:bit…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Tipps: Hilfe zur Programmierung ==&lt;br /&gt;
&lt;br /&gt;
Da der Ton immer wieder erklingen soll, beginnen wir mit einer Schleife. Mit dem Block “dauerhaft führt der micro:bit die von uns programmierten Schritte immer wieder durch. &lt;br /&gt;
Jeder BBC micro:bit spielt einen Ton. Wir müssen als für jeden BBC micro:bit  einen eigenen Code erstellen. In diesem Beispiel ist es das mittlere C. Damit wir den Überblick behalten, sorgen wir zuerst dafür, dass der Ton immer angezeigt wird. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;spoiler text=&amp;quot;Block&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre id=&amp;quot;01&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
basic.forever(function () {&lt;br /&gt;
    basic.showLeds(`&lt;br /&gt;
        . . . . .&lt;br /&gt;
        . . . # #&lt;br /&gt;
        . . # . .&lt;br /&gt;
        . . # . .&lt;br /&gt;
        . . . # #&lt;br /&gt;
        `)&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wir verbinden den BBC micro:bit in einem späteren Schritt über die Pins mit den Tasten. Wenn die Taste gedrückt ist, soll ein Ton abgespielt werden, daher müssen wir immer wieder abfragen, ob der Pin noch  gedrückt wird. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spoiler text=&amp;quot;Block&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre id=&amp;quot;01&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
basic.forever(function () {&lt;br /&gt;
    basic.showLeds(`&lt;br /&gt;
        . . . . .&lt;br /&gt;
        . . . # #&lt;br /&gt;
        . . # . .&lt;br /&gt;
        . . # . .&lt;br /&gt;
        . . . # #&lt;br /&gt;
        `)&lt;br /&gt;
    if (input.pinIsPressed(TouchPin.P1)) {&lt;br /&gt;
    	&lt;br /&gt;
    }&lt;br /&gt;
})&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Es fehlt noch der Ton. Daher brauchen wir einen Block, der beschreibt, was passieren soll wenn Pin1 (und damit die Taste auf dem Klavier) gedrückt ist. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spoiler text=&amp;quot;Block&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre id=&amp;quot;01&amp;quot;&amp;gt;&lt;br /&gt;
basic.forever(function () {&lt;br /&gt;
    basic.showLeds(`&lt;br /&gt;
        . . . . .&lt;br /&gt;
        . . . # #&lt;br /&gt;
        . . # . .&lt;br /&gt;
        . . # . .&lt;br /&gt;
        . . . # #&lt;br /&gt;
        `)&lt;br /&gt;
    if (input.pinIsPressed(TouchPin.P1)) {&lt;br /&gt;
        music.playTone(262, music.beat(BeatFraction.Quarter))&lt;br /&gt;
    }&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wir haben uns für einen ¼ Schlag entschieden, damit man Töne schneller hintereinander abspielen kann. &lt;br /&gt;
&lt;br /&gt;
Damit ist euer Programm für einen BBC micro:bit fertig. Passt das Programm nun für jede anderen Tasten an. Jeder Ton, der abgespielt werden soll, soll auch als dieser Ton auf der LED-Matrix gezeigt werden (d → Mittleres D usw.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htmlet&amp;gt;makecode_embed&amp;lt;/htmlet&amp;gt;&lt;/div&gt;</summary>
		<author><name>Leonie.dreher</name></author>
	</entry>
</feed>