fix: RESET pin active-LOW and clock edge state reset

This commit is contained in:
Jan-Peter von Hunnius 2026-02-26 11:04:25 +01:00
parent 1cf2cd6e2b
commit c9f39aa600
12 changed files with 520 additions and 327 deletions

View file

@ -16,10 +16,14 @@ mod gui_test_utils {
use eframe::egui::{Context, Ui};
/// Create a test GUI context for component testing
/// Properly initializes the context with fonts to avoid runtime panics
pub fn create_test_context() -> Context {
let ctx = Context::default();
// Configure for testing
ctx.set_pixels_per_point(1.0);
// Initialize fonts by running an empty context pass
// This prevents "No fonts available until first call to Context::run()" panic
let _ = ctx.run(egui::RawInput::default(), |_ctx| {});
ctx
}