mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add eternal-scan feature
this is useful for aligning factory test features
This commit is contained in:
parent
b1870e51ea
commit
0c23c5e5bc
2 changed files with 7 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ hosted-baosec = ["bao1x-emu", "ux-api/hosted-baosec", "no-gam"]
|
||||||
|
|
||||||
# temporary feature - remove after we have properly created a camera control API
|
# temporary feature - remove after we have properly created a camera control API
|
||||||
autotest = []
|
autotest = []
|
||||||
|
# factory feature - makes it keep on scanning forever - used for calibrating factory test jigs
|
||||||
|
eternal-scan = []
|
||||||
|
|
||||||
with-logo = []
|
with-logo = []
|
||||||
bao1x = ["utralib/bao1x", "blitstr2/bao1x"]
|
bao1x = ["utralib/bao1x", "blitstr2/bao1x"]
|
||||||
|
|
|
||||||
|
|
@ -613,6 +613,11 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
||||||
display
|
display
|
||||||
.draw()
|
.draw()
|
||||||
.unwrap_or_else(|_| display_timeout_handler(&udma_global, &mut display));
|
.unwrap_or_else(|_| display_timeout_handler(&udma_global, &mut display));
|
||||||
|
#[cfg(feature = "eternal-scan")]
|
||||||
|
{
|
||||||
|
display.clear();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let mut img =
|
let mut img =
|
||||||
rqrr::PreparedImage::prepare_from_greyscale(IMAGE_WIDTH, IMAGE_HEIGHT, |x, y| {
|
rqrr::PreparedImage::prepare_from_greyscale(IMAGE_WIDTH, IMAGE_HEIGHT, |x, y| {
|
||||||
frame[y * IMAGE_WIDTH + x]
|
frame[y * IMAGE_WIDTH + x]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue