#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

#274 in Simulation

Download history 22/week @ 2024-01-31 4/week @ 2024-02-14 15/week @ 2024-02-21 11/week @ 2024-02-28 2/week @ 2024-03-06 16/week @ 2024-03-13 13/week @ 2024-03-27 20/week @ 2024-04-03

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.3–6MB
~114K SLoC