Skip to content

Commit

Permalink
examples/usb-keyboard: Add nrf5340dk support
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Apr 24, 2024
1 parent 846665b commit b7d0de8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/embassy-usb-keyboard/laze.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apps:
- name: embassy-usb-keyboard
context: nrf52840dk
context:
- nrf52840dk
- nrf5340dk
selects:
- ?release
8 changes: 8 additions & 0 deletions examples/embassy-usb-keyboard/src/pins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ riot_rs::define_peripherals!(Buttons {
btn3: P0_24,
btn4: P0_25,
});

#[cfg(builder = "nrf5340dk")]
riot_rs::define_peripherals!(Buttons {
btn1: P0_23,
btn2: P0_24,
btn3: P0_08,
btn4: P0_09,
});

0 comments on commit b7d0de8

Please sign in to comment.