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:dbca63b03984
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Nov 18 06:24:39 2020 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+/*
+ * Lab #: 1
+ * Lab Title: Hardware Lab1
+ * Author(s): Corbin Denham
+ * Date: 11/4/20
+ * Purpose: To lear how to code switches and LEDs
+ */
+
+#include "mbed.h"
+#include "TTU_CSC1300.h"
+
+//FUNCTION PROTOTYPES GO HERE
+TextLCD lcd(TextLCD::LCD_CURSOR_ON_BLINKING_ON);
+
+int main()
+{
+ //this while(TRUE) loop keeps the program running
+ while(TRUE)
+ {
+ led0 = sw5;
+ led1 = !sw5;
+ }
+}