mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add "wheel" test
color wheel test, where the colors are generated directly in the BIO.
This commit is contained in:
parent
02d90fe056
commit
3e2daa8746
2 changed files with 10 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue