LEDS

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
MALESA_ME
Date:
Wed Aug 07 14:18:45 2019 +0000
Commit message:
8 LED CONTROL

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Aug 07 14:18:45 2019 +0000
@@ -0,0 +1,20 @@
+// LAB01 
+// MALESA ME, s217312780
+// 07 AUGUST 2019
+#include "mbed.h"
+BusIn Sws(PA_9,PC_7,PB_6,PA_7 ,PA_6,PA_5,PB_9,PB_8);
+BusOut Leds(PA_10,PB_0,PB_5,PB_4,PB_10,PA_8,PA_0,PA_1);
+DigitalIn S2(PA_0);
+
+int main() {
+    while(1) {if (Sws ==7)
+               {
+               Leds = 0x81 ;
+               }
+               else
+               {
+               Leds = 0x00  ;
+               }
+               
+             }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Aug 07 14:18:45 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file