contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

Committer:
OmarAlebiary
Date:
Tue Mar 05 17:39:20 2019 +0000
Revision:
0:7a611d531256
Initial commit for the project

Who changed what in which revision?

UserRevisionLine numberNew contents of line
OmarAlebiary 0:7a611d531256 1 #include "mbed.h"
OmarAlebiary 0:7a611d531256 2
OmarAlebiary 0:7a611d531256 3 DigitalOut gpo(D0);
OmarAlebiary 0:7a611d531256 4 DigitalOut led(LED_RED);
OmarAlebiary 0:7a611d531256 5
OmarAlebiary 0:7a611d531256 6 int main()
OmarAlebiary 0:7a611d531256 7 {
OmarAlebiary 0:7a611d531256 8 while (true) {
OmarAlebiary 0:7a611d531256 9 gpo = !gpo; // toggle pin
OmarAlebiary 0:7a611d531256 10 led = !led; // toggle led
OmarAlebiary 0:7a611d531256 11 wait(0.2f);
OmarAlebiary 0:7a611d531256 12 }
OmarAlebiary 0:7a611d531256 13 }