#hal #embedded-hal #wasm #embedded

bin+lib hal-sim

An embedded-hal and embedded-graphics Display simulator

5 releases (breaking)

0.5.1 Feb 2, 2024
0.5.0 Feb 1, 2024
0.4.0 Oct 28, 2023
0.3.0 May 14, 2023
0.1.0 Nov 20, 2022

#280 in Simulation

Download history 21/week @ 2024-01-27 1/week @ 2024-02-03 10/week @ 2024-02-17 17/week @ 2024-02-24 3/week @ 2024-03-02 14/week @ 2024-03-09 4/week @ 2024-03-16 27/week @ 2024-03-30 6/week @ 2024-04-06

56 downloads per month

MIT/Apache

310KB
2K SLoC

hal-sim - embedded-hal Simulator

CI crates.io Documentation

Go to this page 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 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.

Dependencies

~1–5.5MB
~109K SLoC