Michael Mc Namara / Mbed 2 deprecated mbed_thread

Dependencies:   mbed

Committer:
t00221592
Date:
Tue Dec 21 10:06:56 2021 +0000
Revision:
0:ae2c0cbd71a3
T00221592 Winter Lab 1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
t00221592 0:ae2c0cbd71a3 1 #include "mbed.h"
t00221592 0:ae2c0cbd71a3 2
t00221592 0:ae2c0cbd71a3 3 DigitalOut myled(LED1);
t00221592 0:ae2c0cbd71a3 4
t00221592 0:ae2c0cbd71a3 5 int main() {
t00221592 0:ae2c0cbd71a3 6 while(1) {
t00221592 0:ae2c0cbd71a3 7 myled = 1;
t00221592 0:ae2c0cbd71a3 8 wait(0.2);
t00221592 0:ae2c0cbd71a3 9 myled = 0;
t00221592 0:ae2c0cbd71a3 10 wait(0.2);
t00221592 0:ae2c0cbd71a3 11 }
t00221592 0:ae2c0cbd71a3 12 }