Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TTU_CSC1300
Diff: main.cpp
- Revision:
- 0:d5f427aebc49
- Child:
- 1:73371dff174b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Nov 08 20:26:28 2020 +0000
@@ -0,0 +1,19 @@
+#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;
+ }
+ }
+}
\ No newline at end of file