Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 7:faf9014d2512
- Parent:
- 6:42ecdff5956a
- Child:
- 8:78294b936c70
--- a/main.cpp Wed Nov 21 08:27:33 2018 +0000
+++ b/main.cpp Wed Nov 21 12:08:43 2018 +0000
@@ -33,20 +33,14 @@
unsigned long counter;
};
-void beepStart();
-void endBeep();
void goForward();
+void initLED();
-void initLED() {
- led_R=1;
- led_G=1;
- led_B=1;
-}
int main() {
initLED();
- beepStart();
+ initBuzzer();
pc.baud(115200);
radio.begin();
network.begin(/*channel*/ 90, /*node address*/ addr);
@@ -69,6 +63,11 @@
}
}
+void initLED() {
+ led_R=1;
+ led_G=1;
+ led_B=1;
+}
void goForward()
{