Simulate CircuitPython using Zephyr simulator
Project description
simulate-circuitpython-nativesim
Simulate CircuitPython using Zephyr simulator
prepare-system
Prepare the runner for the simulator (and possible build process)
Inputs
None
Outputs
None
build-firmware
Build the nativesim firmware (or use a cached version if available)
Inputs
| Argument Name | Description | Default | Notes |
|---|---|---|---|
version |
Version of CircuitPython to simulate | latest |
Must be a version that supports the Zephyr OS native sim |
circuitpython-folder |
Folder name to use for the CircuitPython checkout | cpysim |
Change this if it conflicts with another file/folder |
firmware-filepath |
Filepath for the built firmware | ./firmware.exe |
Outputs
| Argument Name | Description | Notes |
|---|---|---|
restored |
Whether the firmware was restored from cache |
download-firmware
Download the Zephyer simulator firmware
Inputs
| Argument Name | Description | Default | Notes |
|---|---|---|---|
version |
Version of CircuitPython to simulate | latest |
Must be a version that supports the Zephyr OS native sim |
firmware-filepath |
Filepath for the downloaded firmware | ./firmware.exe |
Outputs
| Argument Name | Description | Notes |
|---|---|---|
version |
The firmware version downloaded |
prepare-circuitpy
Prepare the CIRCUITPY folder
Inputs
| Argument Name | Description | Default | Notes |
|---|---|---|---|
code-py |
Filepath for the desired code.py file | '' |
|
dependencies-file |
Filepath for a dependency file for circup | '' |
|
version |
The version of CircuitPython to use (if dependencies given) | latest |
|
circuitpyn |
Filepath to the CIRCUITPY folder to be created | CIRCUITPY |
Outputs
None
prepare-flash
Prepare the flash space for the simulator
Inputs
| Argument Name | Description | Default | Notes |
|---|---|---|---|
flash-filepath |
Filepath for the desired flash binary file | ./flash.bin |
|
circuitpy |
Filepath to file or folder of files to add to the simualted CIRCUITPY | N/A (required) |
Outputs
None
simulate
Run the simulator
Inputs
| Argument Name | Description | Default | Notes |
|---|---|---|---|
firmware-filepath |
Filepath for the built firmware | ./firmware.exe |
|
flash-filepath |
Filepath for the desired flash binary file | ./flash.bin |
Outputs
| Argument Name | Description | Notes |
|---|---|---|
output-text |
The text output from the simulator |
License
This library is available under an MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simulate_circuitpython_nativesim-3.2.3.tar.gz.
File metadata
- Download URL: simulate_circuitpython_nativesim-3.2.3.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c42e859ab0906dad01995699afa28785ff42936346088c1322c15fefa9480dd8
|
|
| MD5 |
2af5cfb247e789eb013b7af02eb73864
|
|
| BLAKE2b-256 |
01c6c59783b6e1294c0476c18079e90c40d1004d8d2b3a2b543c4609329f1729
|
Provenance
The following attestation bundles were made for simulate_circuitpython_nativesim-3.2.3.tar.gz:
Publisher:
publish.yml on tekktrik/simulate-circuitpython-nativesim
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simulate_circuitpython_nativesim-3.2.3.tar.gz -
Subject digest:
c42e859ab0906dad01995699afa28785ff42936346088c1322c15fefa9480dd8 - Sigstore transparency entry: 1439112247
- Sigstore integration time:
-
Permalink:
tekktrik/simulate-circuitpython-nativesim@7393f6e95314b86d5fce7d8d582e9032a0265d75 -
Branch / Tag:
refs/tags/v3.2.3 - Owner: https://github.com/tekktrik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7393f6e95314b86d5fce7d8d582e9032a0265d75 -
Trigger Event:
release
-
Statement type:
File details
Details for the file simulate_circuitpython_nativesim-3.2.3-py3-none-any.whl.
File metadata
- Download URL: simulate_circuitpython_nativesim-3.2.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44e58ae71d98236ffcf306c24d8b00feaca38d37bf336f4509aa41f5bbcef6ab
|
|
| MD5 |
bdd31ee37864594c01a3d3baffacf215
|
|
| BLAKE2b-256 |
c455dd010fd5b5e785ecf0ca16cd6f4b6231a7148189595f26de5c8cf268f5df
|
Provenance
The following attestation bundles were made for simulate_circuitpython_nativesim-3.2.3-py3-none-any.whl:
Publisher:
publish.yml on tekktrik/simulate-circuitpython-nativesim
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simulate_circuitpython_nativesim-3.2.3-py3-none-any.whl -
Subject digest:
44e58ae71d98236ffcf306c24d8b00feaca38d37bf336f4509aa41f5bbcef6ab - Sigstore transparency entry: 1439112252
- Sigstore integration time:
-
Permalink:
tekktrik/simulate-circuitpython-nativesim@7393f6e95314b86d5fce7d8d582e9032a0265d75 -
Branch / Tag:
refs/tags/v3.2.3 - Owner: https://github.com/tekktrik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7393f6e95314b86d5fce7d8d582e9032a0265d75 -
Trigger Event:
release
-
Statement type: