mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-10 08:15:36 +00:00
rm led color comment
This commit is contained in:
parent
f981189222
commit
debd7658b7
2 changed files with 8 additions and 8 deletions
|
@ -106,13 +106,13 @@ impl Led {
|
||||||
// 🔽 --- Button Exercise --- 🔽
|
// 🔽 --- Button Exercise --- 🔽
|
||||||
/// All buttons on the board
|
/// All buttons on the board
|
||||||
pub struct Buttons {
|
pub struct Buttons {
|
||||||
/// BUTTON1: pin P0.11, green LED
|
/// BUTTON1: pin P0.11
|
||||||
pub b_1: Button,
|
pub b_1: Button,
|
||||||
/// BUTTON2: pin P0.12, green LED
|
/// BUTTON2: pin P0.12
|
||||||
pub b_2: Button,
|
pub b_2: Button,
|
||||||
/// BUTTON3: pin P0.24, green LED
|
/// BUTTON3: pin P0.24
|
||||||
pub b_3: Button,
|
pub b_3: Button,
|
||||||
/// BUTTON4: pin P0.25, green LED
|
/// BUTTON4: pin P0.25
|
||||||
pub b_4: Button,
|
pub b_4: Button,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,13 +25,13 @@ Building this code should return a warning: field `inner` is never read.
|
||||||
```rust
|
```rust
|
||||||
/// All buttons on the board
|
/// All buttons on the board
|
||||||
pub struct Buttons {
|
pub struct Buttons {
|
||||||
/// BUTTON1: pin P0.11, green LED
|
/// BUTTON1: pin P0.11
|
||||||
pub b_1: Button,
|
pub b_1: Button,
|
||||||
/// BUTTON2: pin P0.12, green LED
|
/// BUTTON2: pin P0.12
|
||||||
pub b_2: Button,
|
pub b_2: Button,
|
||||||
/// BUTTON3: pin P0.24, green LED
|
/// BUTTON3: pin P0.24
|
||||||
pub b_3: Button,
|
pub b_3: Button,
|
||||||
/// BUTTON4: pin P0.25, green LED
|
/// BUTTON4: pin P0.25
|
||||||
pub b_4: Button,
|
pub b_4: Button,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue