Carson Pope / Mbed 2 deprecated CSC_EDUBASEV2_Lab1

Dependencies:   mbed TTU_CSC1300

main.cpp

Committer:
carsonpope
Date:
2020-11-09
Revision:
1:73371dff174b
Parent:
0:d5f427aebc49

File content as of revision 1:73371dff174b:

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

//Function prototypes

int main() {
    while (TRUE) {
     //solution   
           bool sw5_pressed = sw5;
           
           if( sw5_pressed == 1){
               led0 = TRUE;
               led1 = FALSE;
            } else {
               led0 = FALSE;
               led1 = TRUE;
            }
    }
}