hazumi
Back

Show HN: dvcdbg 0.3.0: 1.3KB Initialization Sequence Explorer(Arduino in Rust)

Placelesscrates.io
2 points0 comments

The article discusses the dvcdbg crate, a Rust library that provides a simple and lightweight debugging interface for applications built with the Diesel ORM. The crate allows developers to easily log database queries and their execution times, helping to identify performance bottlenecks in their applications.

I recently purchased an SH1107G-based OLED and found no Rust driver that worked in a synchronous, no_std environment.

So I wrote my own driver, and along the way implemented a *1.3KB algorithm to search and verify the initialization sequence* on an Arduino Uno.

Key features: - Iterative topological sort to explore init sequences - Optimized for AVR constraints using bit flags and static arrays - Utilities: I2C scanner, hex/binary dump, serial adapter

This actually initializes a Grove OLED on Arduino Uno using just 1.3KB SRAM.

Code & docs: https://github.com/p14c31355/dvcdbg Crate: https://crates.io/crates/dvcdbg