Skip to content

Commit ee7702a

Browse files
Update README.md
1 parent 5df56e9 commit ee7702a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ button.OnPowerOff(() => redLED.TurnOff());
103103
redLED.OnPowerChange(() => buzzer.Toggle(1, 1));
104104
```
105105

106+
Whenever the button is pressed down, the LED will turn on. When the button is released, the LED will turn off. Whenever the LED turns on or off, the buzzer will beep for half a second (reminder why: because Toggle will complete a single cycle at 1Hz, which means 0.5s on, then 0.5s off).
107+
106108
## Cleaning up
107109

108110
If you want to turn off everything that was turned on while your application was running, simply `Dispose()` of your `RaspberryPi` at the end of your code.

0 commit comments

Comments
 (0)