Examples
May 10, 2026 ยท View on GitHub
The driver is designed to run on multiple platforms using embedded-hal and embedded-io, and to support both sync and async modes.
Std Sync/Async Examples
The top-level examples are designed to work with an operating system in a std environment.
-
registers.rs This example uses the
advancedfeature, which exposes more fine-grained control and allows users to access individual registers. -
tokio.rs This example uses the Tokio runtime to access the device asynchronously.
For the required hardware, you will need the following:
- An OS-based system (macOS/Linux)
- A JSY-MK-194G power monitor
- A USB-TTL Serial Converter
No-std Examples
For no-std examples, we have both an async and sync example using the defmt feature for logging.
For the synchronous example, a bare-metal application using an STM32 Blue Pill is demonstrated.
For the asynchronous example, an Embassy application using an ESP32C3 is used.