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: 4DGL-uLCD-SE mbed AD5206
Diff: main.cpp
- Revision:
- 0:1db7e816a191
- Child:
- 1:d4dce9aeea69
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 01 06:53:15 2015 +0000
@@ -0,0 +1,40 @@
+/* ECE4180 Final Project -- mbed Function Generator
+    
+   Platform: mbed LPC-1768
+    
+   Team member: Hanjie Xie
+                Qiuyang Tao
+                Xuefeng Jin
+                Yuqing Peng
+*/
+
+
+#include "mbed.h"
+#include "uLCD_4DGL.h"
+
+//----- Objects for devices----------------------
+Serial pc(USBTX, USBRX);
+Serial funGen(p28, p27);
+uLCD_4DGL lcd(p13, p14, p15);
+
+
+
+void initialize_LCD(){
+    lcd.baudrate(3000000);
+    lcd.background_color(0);
+    lcd.cls();
+    
+    lcd.printf("Initializing...\n");
+    lcd.printf("Fun Generator Demo"); 
+}
+
+
+ 
+int main(void){
+    initialize_LCD();
+    
+    while (1){
+        funGen.printf("0,3000\n");
+        wait(500);
+    }
+}