We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3c836 commit 3335ba2Copy full SHA for 3335ba2
boards/nRF9160-DK/examples/blinky.rs
@@ -21,9 +21,9 @@ fn main() -> ! {
21
let mut led_is_on = false;
22
loop {
23
if led_is_on {
24
- board.leds.led_1.off();
+ board.leds.led_1.disable();
25
} else {
26
- board.leds.led_1.on();
+ board.leds.led_1.enable();
27
}
28
timer.start(1_000_000_u32);
29
block!(timer.wait()).unwrap();
boards/nRF9160-DK/src/lib.rs
@@ -604,12 +604,12 @@ impl Led {
604
605
606
/// Enable the LED
607
- pub fn on(&mut self) {
+ pub fn enable(&mut self) {
608
self.0.set_high()
609
610
611
/// Disable the LED
612
- pub fn off(&mut self) {
+ pub fn disable(&mut self) {
613
self.0.set_low()
614
615
0 commit comments