https://os.mbed.com/media/uploads/cdupaty/uoled-128-g1.jpg

Demo for u0LED128-G1 4D Systems 128x128 Graphic Display This simple demo demonstrates the use of graphical display controls. The library construction does not use a C ++ class.

Data Sheet : https://www.farnell.com/datasheets/356896.pdf

Ref 4DSystems for G2 version : https://4dsystems.com.au/uoled-128-g2

main.cpp

Committer:
WilliamMarshQMUL
Date:
2020-01-22
Revision:
4:a2d1329d042c
Parent:
3:5b27b27e68ab
Child:
5:791713e36c37

File content as of revision 4:a2d1329d042c:

// Serial demo using mbed 5

#include "mbed.h"

DigitalOut myled(LED1);
Serial pc(USBTX, USBRX); // tx, rx

int main() {
    char c ;
    pc.printf("Enter a character>");
    while(1) {
        myled = 0;  // turn on
        c = pc.getc();
        myled = 1;  // turn off
        pc.putc(c);
        pc.putc(c); // echo twice
        pc.putc('\r');
        pc.putc('\n');
        wait(0.5);
        pc.printf("Enter a character>");
    }
}