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
main.cpp
- Committer:
- taoqiuyang
- Date:
- 2015-12-01
- Revision:
- 0:1db7e816a191
- Child:
- 1:d4dce9aeea69
File content as of revision 0:1db7e816a191:
/* 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);
    }
}