An open API service indexing awesome lists of open source software.

https://github.com/steamicc/micropython-steami-sample

MicroPython Scripts for STM32WB55 This repository contains a collection of MicroPython script examples designed for the STeaMi microcontroller. The goal is to provide useful, well-documented code snippets and project templates.
https://github.com/steamicc/micropython-steami-sample

Last synced: 3 months ago
JSON representation

MicroPython Scripts for STM32WB55 This repository contains a collection of MicroPython script examples designed for the STeaMi microcontroller. The goal is to provide useful, well-documented code snippets and project templates.

Awesome Lists containing this project

README

          

# MicroPython STEAMI Sample

A collection of MicroPython sample scripts for the **STM32WB55** microcontroller. These examples demonstrate a wide range of features such as LED control, button input, BLE communication, sensor reading, display management, and simple games โ€” ideal for STEAM education and embedded experimentation.

---

## ๐Ÿ“ Project Structure

```
micropython-steami-sample/
โ”‚
โ”œโ”€โ”€ BLE/ # Bluetooth Low Energy communication
โ”œโ”€โ”€ BUTTON/ # Button input examples
โ”œโ”€โ”€ DEMO/ # Combined demos (e.g., sensors + screen)
โ”œโ”€โ”€ GAME/ # Mini games in MicroPython
โ”œโ”€โ”€ LED/ # LED control and animations
โ”œโ”€โ”€ SCREEN/ # Display output examples (e.g., OLED)
โ”œโ”€โ”€ SENSOR/ # Sensor data acquisition
```

Each folder contains example `.py` scripts you can run directly on your STM32WB55 board.

---

## โœ… Requirements

* **Hardware**: STM32WB55 development board
* **Firmware**: MicroPython for STM32WB55 (flashed)
* **Tooling**:

* [mpremote](https://docs.micropython.org/en/latest/reference/mpremote.html) (official MicroPython tool)

---

## ๐Ÿš€ Quick Start with `mpremote`

1. **Install mpremote** if not already installed:

```bash
pip install mpremote
```

2. **Connect your board** via USB and verify it's detected:

```bash
mpremote connect list
```

3. **Upload and run a script**:

For example, to run the LED blink demo:

```bash
mpremote connect auto fs cp LED/blink.py :main.py
mpremote connect auto reset
```

This copies the script to your board and sets it to run on boot.

4. **Open a REPL (optional)**:

```bash
mpremote connect auto
```

Then press `Ctrl+C` to stop current execution or `Ctrl+D` to soft reset.

---

## ๐Ÿงช Examples

* `LED/blink.py` โ€” basic LED blink
* `BUTTON/read_button.py` โ€” detect button press
* `BLE/advertiser.py` โ€” advertise as BLE device
* `SCREEN/oled_demo.py` โ€” print to OLED screen
* `GAME/dinoSteam.py` โ€” a simple built-in game