diff --git a/apps-dabao/dabao-console/src/cmds/touch.rs b/apps-dabao/dabao-console/src/cmds/touch.rs index eb5ec3c2c..1614dfdb6 100644 --- a/apps-dabao/dabao-console/src/cmds/touch.rs +++ b/apps-dabao/dabao-console/src/cmds/touch.rs @@ -17,7 +17,7 @@ impl<'a> ShellCmdApi<'a> for Touch { fn process(&mut self, args: String, env: &mut super::CommonEnv) -> Result, xous::Error> { use core::fmt::Write; let mut ret = String::new(); - let helpstring = "ws2812 [rainbow []] [length ] [hexcolor <#rrggbb>]"; + let helpstring = "touch [pin] [monitor] [wait-touch] [wait-release] [touch-release]"; let mut tokens = args.split(' '); @@ -34,7 +34,7 @@ impl<'a> ShellCmdApi<'a> for Touch { let mut captouch = bio_lib::captouch::Captouch::new(self.pin, None).unwrap(); captouch.calibrate(None).unwrap(); loop { - log::info!("{:?}, {}", captouch.is_touched(), captouch.raw_status()); + log::info!("{}", captouch.raw_status()); env.ticktimer.sleep_ms(100).ok(); } } diff --git a/apps-dabao/dabao-console/src/cmds/ws2812.rs b/apps-dabao/dabao-console/src/cmds/ws2812.rs index 02cd8d3c3..399ecd245 100644 --- a/apps-dabao/dabao-console/src/cmds/ws2812.rs +++ b/apps-dabao/dabao-console/src/cmds/ws2812.rs @@ -30,7 +30,8 @@ impl<'a> ShellCmdApi<'a> for Ws2812 { fn process(&mut self, args: String, env: &mut super::CommonEnv) -> Result, xous::Error> { use core::fmt::Write; let mut ret = String::new(); - let helpstring = "ws2812 [rainbow []] [length ] [hexcolor <#rrggbb>]"; + let helpstring = + "ws2812 [rainbow []] [touch []] [length ] [hexcolor <#rrggbb>]"; let mut tokens = args.split(' ');