From 3e2daa87465aefcdbb89b8ac6ab25a2169acc199 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 22 Feb 2026 03:23:05 +0800 Subject: [PATCH] add "wheel" test color wheel test, where the colors are generated directly in the BIO. --- apps-dabao/dabao-console/Cargo.toml | 3 ++- apps-dabao/dabao-console/src/cmds/test.rs | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps-dabao/dabao-console/Cargo.toml b/apps-dabao/dabao-console/Cargo.toml index 435ab8e8a..68264d561 100644 --- a/apps-dabao/dabao-console/Cargo.toml +++ b/apps-dabao/dabao-console/Cargo.toml @@ -42,7 +42,8 @@ board-dabao = [ "bio-lib/captouch", ] bio-math-test = ["bio-lib/c-math-test"] +bio-wheel-test = ["bio-lib/c-colorwheel"] ctap-bringup = [] usb = [] aestests = ["aes"] -default = ["usb", "bio-math-test"] +default = ["usb", "bio-math-test", "bio-wheel-test"] diff --git a/apps-dabao/dabao-console/src/cmds/test.rs b/apps-dabao/dabao-console/src/cmds/test.rs index aaa47b1df..c220b2773 100644 --- a/apps-dabao/dabao-console/src/cmds/test.rs +++ b/apps-dabao/dabao-console/src/cmds/test.rs @@ -81,6 +81,14 @@ impl<'a> ShellCmdApi<'a> for Test { let mut math = bio_lib::c::math_test::MathTest::new().unwrap(); math.test_cos(); } + #[cfg(feature = "bio-wheel-test")] + "wheel" => { + let mut wheel = + bio_lib::c::colorwheel::Colorwheel::new(arbitrary_int::u5::from_u8(5), 12, 2, None) + .unwrap(); + // run forever, code blocks here + wheel.run(None); + } "env" => { log::info!("{:?}", std::env::vars()); }