Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rtfm-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
rtfm-app
Commits
d25e6978
Commit
d25e6978
authored
7 years ago
by
Per
Browse files
Options
Downloads
Patches
Plain Diff
bare9, are we done yet?
parent
dd94f406
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/bare9.rs
+32
-0
32 additions, 0 deletions
examples/bare9.rs
with
32 additions
and
0 deletions
examples/bare9.rs
0 → 100644
+
32
−
0
View file @
d25e6978
// 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment