Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nrf52-code/boards/dk-solution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub struct Button {

impl Button {
/// Is the button pressed
pub fn is_pressed(&mut self) -> bool {
pub fn is_pressed(&self) -> bool {
self.inner.is_low()
}
}
Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/hal-app/src/bin/buttons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() -> ! {
let mut timer = board.timer;
// Uncomment the line below
// 👇
// let mut button = board.buttons._1;
// let button = board.buttons._1;

defmt::println!("Polling button every 100ms");
loop {
Expand Down