#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

#267 in Simulation

Download history 22/week @ 2024-01-28 10/week @ 2024-02-18 18/week @ 2024-02-25 2/week @ 2024-03-03 17/week @ 2024-03-10 1/week @ 2024-03-17 33/week @ 2024-03-31

51 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