# Gemma M0

## Übersicht

## Programmieren mit MakeCode

Ein großer Vorteil ist, dass man den Gemma M0 ganz einfach mit MakeCode, der grafischen Progriammieroberfläche von Microsoft, programmieren kann.

{% hint style="info" %}
Benutze MakeCode am besten mit dem Chrome Browser - damit kannst du die Programmierung direkt auf den Gemma übertragen, ohne vorher die U2F Datei mit dem Dateimanager kopieren zu müssen.
{% endhint %}

1. Gemma per USB anschließen
2. <https://maker.makecode.com/#editor>
3. "Gemma M0" auswählen
4. ![](/files/0lb3p46Y0eFckG4y67UA)
5. Druck auf "Reset" wechselt zwischen Upload- und Running-Mode
6. ![](/files/TV78vVvkeyFocnYjABFZ)

## NeoPixel / WS1820B Anschließen

![](/files/7nQz59RBPiXyuG8J6T8p)

* Signal unbedingt an D1 / A0
* ![](/files/aPLA7bR74XcjfcryBou5)

### Musik über Piezo Element

* Piezo an GND (Schwarz) und A2 (Rot) anschließen
* ![](/files/NeZF3Up8mUUZ78e8tTWc)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://handbuch.kidslab.de/arduino/gemma-m0.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
