# "Warte bis PIN gedrückt" in Make Code?

**URL:** <https://forum.calliope.cc/t/warte-bis-pin-gedrueckt-in-make-code/2658>\
**Category:** Fragen zu MakeCode/PXT\
**Created:** [4. Juli 2023 um 19:04 UTC](https://forum.calliope.cc/t/warte-bis-pin-gedrueckt-in-make-code/2658 "2023-07-04T19:04:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mookie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mookie](https://forum.calliope.cc/u/Mookie)\
**Post date:** [4. Juli 2023 um 19:04 UTC](https://forum.calliope.cc/t/warte-bis-pin-gedrueckt-in-make-code/2658/1 "2023-07-04T19:04:31Z")

</div>

Hallo zusammen,  
ich programmiere ein kleines Schulprojekt in Make Code. Eigentlich habe ich das Programm schon in Roberta geschrieben, aber da ich einen parallel ausgeführten Code für ein 4-digit Display als Timer brauche, will ich auf Make Code umsteigen.  
Mein Problem: Das Programm soll warten, bis einer der vier PINs gedrückt wird. In Roberta kann ich mir das recht einfach mittels „Warten bis“ Block und „Pin gedrückt?“ Abfragen zusammenbasteln, das sieht dann so aus:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/calliope/original/2X/c/c0859b02dac629721797ca7989a2a0bcceb82b92.png)

Ich habe aber leider keine Ahnung, wie ich das in Make Code realsieren kann. Das einzige, was halbwegs passend aussieht ist „Warte auf Ereignis von…“, aber das macht nicht das, was ich erwarten würde bzw. ich bekomme es nicht so hin, wie ich es brauche.

Hat jemand eine Idee, wie ich das hinbekomme?  
Gruß  
Mookie

---

<div class="post-metadata">

**Author:** ![klmi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.calliope.cc/klmi/32/763_2.png) [@klmi](https://forum.calliope.cc/u/klmi)\
**Post date:** [4. Juli 2023 um 20:21 UTC](https://forum.calliope.cc/t/warte-bis-pin-gedrueckt-in-make-code/2658/2 "2023-07-04T20:21:29Z")

</div>

Hallo Mookie

Ich weiß nicht genau was Du machen willst aber die exakteste Nachbildung wäre das hier;

([Programm](https://makecode.calliope.cc/_XE08AFJVwVq1))

 ![grafik](https://canada1.discourse-cdn.com/flex027/uploads/calliope/original/2X/5/53a57d340796786e19cbf3294f832ea31b7affe6.png)

Viel Erfolg!

Michael

---

<div class="post-metadata">

**Author:** ![Juri](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Juri](https://forum.calliope.cc/u/Juri)\
**Post date:** [4. Juli 2023 um 20:31 UTC](https://forum.calliope.cc/t/warte-bis-pin-gedrueckt-in-make-code/2658/3 "2023-07-04T20:31:11Z")

</div>

Oder [Ohne Titel](https://makecode.calliope.cc/_cmCcUc4ozaJ1)

Je nach dem, was besser gefällt 🙂

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/calliope/original/2X/0/039308b14f3eed0681f70330abf635bfca5c85de.png)

---

<div class="post-metadata">

**Author:** ![Mookie](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mookie](https://forum.calliope.cc/u/Mookie)\
**Post date:** [5. Juli 2023 um 06:10 UTC](https://forum.calliope.cc/t/warte-bis-pin-gedrueckt-in-make-code/2658/4 "2023-07-05T06:10:48Z")

</div>

Perfekt, danke euch beiden
