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:
- 2:ff5abf6d887c
- Parent:
- 0:a4507a30f549
- Child:
- 3:11ab070a3edb
--- a/main.cpp Tue Nov 22 09:00:27 2016 +0000
+++ b/main.cpp Tue Nov 22 10:59:11 2016 +0000
@@ -1,10 +1,19 @@
#include "mbed.h"
#include "rtos.h"
+#include "indicator.h"
-DigitalIn knop(KNOB1);
+
+DigitalIn knop(p8);
DigitalOut myled(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+
+
+
int main() {
+ Thread indicator(led.indicator_thread();
+ Indicator led(LED4);
while(1) {
myled = 1;
wait(0.2);