From d25e69782ed3ae7bbe47a2747d35828a1771f6aa Mon Sep 17 00:00:00 2001 From: Per <Per Lindgren> Date: Thu, 15 Feb 2018 00:18:38 +0100 Subject: [PATCH] bare9, are we done yet? --- examples/bare9.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 examples/bare9.rs diff --git a/examples/bare9.rs b/examples/bare9.rs new file mode 100644 index 0000000..550b8d2 --- /dev/null +++ b/examples/bare9.rs @@ -0,0 +1,32 @@ +// now you are on your own..... +// +// look at the examples in the f4 crate +// https://github.com/jsjolund/f4 +// +// try out the examples/pwm-control.rs +// +// connect an oschillocope to the pwm output +// check that you can control the pwm over the serial +// +// +// your assingment is to improve the user interface +// to take commands +// +// on // turn on the pwm output +// off // turn off the pwm output +// set p // p being the duty cycle in % +// +// and optionally +// freq f // pww frequency te f hz +// ... // your own commands +// +// I would suggest using the bare8 as a starting point +// and adding code from the pwm-control example +// you may look if `parse` can be of use to you here... +// make the command parser work first, and then add the pwm code. +// +// +// commit your solution (bare9) +// +// https://play.rust-lang.org/, +// offers a good way to prototype and share code snippets -- GitLab