Hello World App for Cohort 4

Committer:
nsejim
Date:
Mon Mar 21 15:02:43 2022 +0000
Revision:
0:66a527592d26
Changed sleep time from 500 ms to 5000ms

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nsejim 0:66a527592d26 1 #include "mbed.h"
nsejim 0:66a527592d26 2
nsejim 0:66a527592d26 3 DigitalOut led(LED1);
nsejim 0:66a527592d26 4
nsejim 0:66a527592d26 5 int main() {
nsejim 0:66a527592d26 6 while (1) {
nsejim 0:66a527592d26 7 led = !led;
nsejim 0:66a527592d26 8 printf("Blink! LED is now %d\n", led.read());
nsejim 0:66a527592d26 9
nsejim 0:66a527592d26 10 wait_ms(5000);
nsejim 0:66a527592d26 11 }
nsejim 0:66a527592d26 12 }