add "wheel" test

color wheel test, where the colors are generated directly in
the BIO.
This commit is contained in:
bunnie 2026-02-22 03:23:05 +08:00
parent 02d90fe056
commit 3e2daa8746
2 changed files with 10 additions and 1 deletions

View file

@ -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"]

View file

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