buzzer test (note changed from piezo to buzzer for volume)
Dependencies: mbed
main.cpp@0:8520c16e2880, 2017-05-23 (annotated)
- Committer:
- Owenmatthewmcgowan
- Date:
- Tue May 23 14:16:00 2017 +0000
- Revision:
- 0:8520c16e2880
789
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Owenmatthewmcgowan | 0:8520c16e2880 | 1 | #include "mbed.h" |
Owenmatthewmcgowan | 0:8520c16e2880 | 2 | DigitalOut buzzer(PTC9); |
Owenmatthewmcgowan | 0:8520c16e2880 | 3 | DigitalOut gnd(PTC11); |
Owenmatthewmcgowan | 0:8520c16e2880 | 4 | |
Owenmatthewmcgowan | 0:8520c16e2880 | 5 | int main() { |
Owenmatthewmcgowan | 0:8520c16e2880 | 6 | gnd = 0; |
Owenmatthewmcgowan | 0:8520c16e2880 | 7 | buzzer = 1; |
Owenmatthewmcgowan | 0:8520c16e2880 | 8 | while(1) { } |
Owenmatthewmcgowan | 0:8520c16e2880 | 9 | } |