Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simulate_circuitpython_nativesim-3.2.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file simulate_circuitpython_nativesim-3.2.2.tar.gz.

File metadata

File hashes

Hashes for simulate_circuitpython_nativesim-3.2.2.tar.gz
Algorithm Hash digest
SHA256 03dda3629c801e71f9b166506eb96d3b365256c270967fd749bba1d68bf34ca8
MD5 bda1b51b595f67994e7ad6bcd399200d
BLAKE2b-256 dace144f06e0ed5a993e07c9853ca21df48225c5a4e81908d24a83ea3270e239

See more details on using hashes here.

Provenance

The following attestation bundles were made for simulate_circuitpython_nativesim-3.2.2.tar.gz:

Publisher: publish.yml on tekktrik/simulate-circuitpython-nativesim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simulate_circuitpython_nativesim-3.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simulate_circuitpython_nativesim-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3728b9f888efcf0f26221bc95b26ad84c4c89aeabc7866d77807db05575322c1
MD5 9fdd932c94de662d0433c1a9141ea7be
BLAKE2b-256 716e7a24c3a87030366be293583b3239e1b9d80f997418c7f4f7961faeaef300

See more details on using hashes here.

Provenance

The following attestation bundles were made for simulate_circuitpython_nativesim-3.2.2-py3-none-any.whl:

Publisher: publish.yml on tekktrik/simulate-circuitpython-nativesim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page