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.
- Host: GitHub
- URL: https://github.com/steamicc/micropython-steami-sample
- Owner: steamicc
- Created: 2025-04-18T09:15:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-03T09:24:31.000Z (8 months ago)
- Last Synced: 2025-11-03T11:23:23.978Z (8 months ago)
- Language: Python
- Homepage:
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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