mbed-os-example-blinky_EinkShield

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

/media/uploads/jauming/blinky.png

Pinout

/media/uploads/jauming/mbed_pinout_v05.png

led blink example

#include "mbed.h"

DigitalOut einkshield_led1(D7);

// main() runs in its own thread in the OS
int main() {
    while (true) {
        einkshield_led1 = !einkshield_led1;
        wait(0.5);
    }
}

Files at this revision

API Documentation at this revision

Comitter:
jauming
Date:
Tue Jul 31 06:11:50 2018 +0000
Parent:
72:6d94d755fbb0
Commit message:
led blinky example

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jul 17 08:45:03 2018 +0100
+++ b/main.cpp	Tue Jul 31 06:11:50 2018 +0000
@@ -1,11 +1,11 @@
 #include "mbed.h"
 
-DigitalOut led1(LED1);
+DigitalOut einkshield_led1(D7);
 
 // main() runs in its own thread in the OS
 int main() {
     while (true) {
-        led1 = !led1;
+        einkshield_led1 = !einkshield_led1;
         wait(0.5);
     }
 }