Carson Pope / Mbed 2 deprecated CSC_EDUBASEV2_Lab1

Dependencies:   mbed TTU_CSC1300

main.cpp

Committer:
carsonpope
Date:
2020-11-08
Revision:
0:d5f427aebc49
Child:
1:73371dff174b

File content as of revision 0:d5f427aebc49:

#include "mbed.h"
#include "TTU_CSC1300.h"

//Function prototypes

int main() {
    while (TRUE) {
     //solution   
           bool sw5_pressed = SW5;
           
           if(sw5_pressed = TRUE){
               LED0 = TRUE;
               LED1 = FALSE;
            } else {
               LED0 = FALSE;
               LED1 = TRUE;
            }
    }
}