Test

Committer:
sarahmarshy
Date:
Wed Sep 27 20:32:57 2017 +0000
Revision:
0:c9ada13905aa
Initial commit

Who changed what in which revision?

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