mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-06-08 16:39:27 +00:00
555 B
555 B
BSC Exercise
In this exercise you will learn how to write a board support crate.
Learning goals
- implement buttons functionality
- impl blocks, associated functions, methods
- generate docs!
Steps
-
add field in the board struct
-
add struct for all buttons
-
add struct for the single button
-
Read docs, section 8.7 for info about pins and pin configuration
-
add button bring up to board init
-
add doc lines every where!
-
add methods in impl block:
- detect button push
- add another... look at knurling book for inspiration