Carson Pope / Mbed 2 deprecated CSC_EDUBASEV2_Lab1

Dependencies:   mbed TTU_CSC1300

Files at this revision

API Documentation at this revision

Comitter:
carsonpope
Date:
Mon Nov 09 04:51:59 2020 +0000
Parent:
0:d5f427aebc49
Commit message:
Actually works

Changed in this revision

TTU_CSC1300.lib Show annotated file Show diff for this revision Revisions of this file
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/TTU_CSC1300.lib	Mon Nov 09 04:51:59 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/jwbruce/code/TTU_CSC1300/#7bb32dea705b
--- a/main.cpp	Sun Nov 08 20:26:28 2020 +0000
+++ b/main.cpp	Mon Nov 09 04:51:59 2020 +0000
@@ -6,14 +6,14 @@
 int main() {
     while (TRUE) {
      //solution   
-           bool sw5_pressed = SW5;
+           bool sw5_pressed = sw5;
            
-           if(sw5_pressed = TRUE){
-               LED0 = TRUE;
-               LED1 = FALSE;
+           if( sw5_pressed == 1){
+               led0 = TRUE;
+               led1 = FALSE;
             } else {
-               LED0 = FALSE;
-               LED1 = TRUE;
+               led0 = FALSE;
+               led1 = TRUE;
             }
     }
 }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 09 04:51:59 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file