https://github.com/ivmarkov/hal-sim
Embedded-hal simulator.
https://github.com/ivmarkov/hal-sim
Last synced: 3 months ago
JSON representation
Embedded-hal simulator.
- Host: GitHub
- URL: https://github.com/ivmarkov/hal-sim
- Owner: ivmarkov
- License: apache-2.0
- Created: 2022-10-08T19:22:05.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T07:38:21.000Z (6 months ago)
- Last Synced: 2025-03-29T05:03:25.793Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 147 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# hal-sim - [embedded-hal](https://github.com/rust-embedded/embedded-hal) Simulator
[](https://github.com/ivmarkov/hal-sim/actions/workflows/ci.yml)

[](https://docs.rs/hal-sim)Go to [this page](https://github.com/ivmarkov/ruwm) and click the "DEMO" there link to see the simulator in action!
This crate simulates a small portion of the embedded-hal traits. Namely:
* GPIO (both e-hal V0.2 and e-hal V1.0 traits, including the async `Wait` trait)
* ADC (only e-hal V0.2, as there are no standard traits for ADC in e-hal V1.0 yet)Additionally, it also contains an [embedded-graphics](https://github.com/embedded-graphics/embedded-graphics) Display driver simulator.
The purpose of this simulator is to ease embedded development by enabling cross-compilation of embedded projects on a X86 target (PC) or for WASM.