Ellis Blackford Stroud 201155309

Dependencies:   mbed FATFileSystem

Committer:
ellisbhastroud
Date:
Tue Mar 12 14:38:03 2019 +0000
Revision:
0:c6ceddb241df
Child:
1:6179c2d67d19
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ellisbhastroud 0:c6ceddb241df 1 /*
ellisbhastroud 0:c6ceddb241df 2 ELEC2645 Embedded Systems Project
ellisbhastroud 0:c6ceddb241df 3 School of Electronic & Electrical Engineering
ellisbhastroud 0:c6ceddb241df 4 University of Leeds
ellisbhastroud 0:c6ceddb241df 5 Name: Ellis Blackford Stroud
ellisbhastroud 0:c6ceddb241df 6 Username: el17ebs
ellisbhastroud 0:c6ceddb241df 7 Student ID Number: 201155309
ellisbhastroud 0:c6ceddb241df 8 Date: 12/03/19
ellisbhastroud 0:c6ceddb241df 9 */
ellisbhastroud 0:c6ceddb241df 10 #include "mbed.h"
ellisbhastroud 0:c6ceddb241df 11
ellisbhastroud 0:c6ceddb241df 12 DigitalOut gpo(D0);
ellisbhastroud 0:c6ceddb241df 13 DigitalOut led(LED_RED);
ellisbhastroud 0:c6ceddb241df 14
ellisbhastroud 0:c6ceddb241df 15 int main()
ellisbhastroud 0:c6ceddb241df 16 {
ellisbhastroud 0:c6ceddb241df 17 while (true) {
ellisbhastroud 0:c6ceddb241df 18 gpo = !gpo; // toggle pin
ellisbhastroud 0:c6ceddb241df 19 led = !led; // toggle led
ellisbhastroud 0:c6ceddb241df 20 wait(0.2f);
ellisbhastroud 0:c6ceddb241df 21 }
ellisbhastroud 0:c6ceddb241df 22 }