LEDS

Dependencies:   mbed

main.cpp

Committer:
MALESA_ME
Date:
2019-08-07
Revision:
0:a8f509b39f09

File content as of revision 0:a8f509b39f09:

// 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  ;
               }
               
             }
}