4180 lab 5

Dependencies:   mbed 4DGL-uLCD-SE RPCInterface

main.cpp

Committer:
emilywilson
Date:
2020-04-03
Revision:
5:b34ce166b697
Parent:
4:1ef667567942
Child:
6:96dd38c5d122

File content as of revision 5:b34ce166b697:

#include "mbed.h"
#include "uLCD_4DGL.h"

Serial pc(USBTX, USBRX);

uLCD_4DGL lcd(p28,p27,p30);

int main() {
    pc.baud(9600);
    
    lcd.cls();

    while (1) {
        if (pc.readable()) {
            lcd.printf(pc.getc());
        }
        wait(0.1);
    }
}