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()); }