test

Committer:
marksin
Date:
Thu Mar 23 10:37:39 2017 +0000
Revision:
0:ce3e856eae4e
led

Who changed what in which revision?

UserRevisionLine numberNew contents of line
marksin 0:ce3e856eae4e 1 #include "mbed.h"
marksin 0:ce3e856eae4e 2
marksin 0:ce3e856eae4e 3 DigitalOut led1(LED1);
marksin 0:ce3e856eae4e 4
marksin 0:ce3e856eae4e 5 // main() runs in its own thread in the OS
marksin 0:ce3e856eae4e 6 int main() {
marksin 0:ce3e856eae4e 7 while (true) {
marksin 0:ce3e856eae4e 8 led1 = !led1;
marksin 0:ce3e856eae4e 9 wait(0.5);
marksin 0:ce3e856eae4e 10 }
marksin 0:ce3e856eae4e 11 }
marksin 0:ce3e856eae4e 12