GraphicOLED

UTF8版

Import programGraphicOLED_helloworld

Graphic OLED example program.

Import libraryGraphicOLED

Graphic OLED 100x16 pixels interface

シフトJIS版

/media/uploads/va009039/graphicoled.jpg

Import libraryGraphicOLED

Graphic OLED 100x16 pixels interface

Revision 1に変更して下さい。

Warning

TextLCDライブラリもインポートして下さい。

Import libraryTextLCD

TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface

main.cpp

#include "mbed.h"
#include "GraphicOLED.h"

GraphicOLED oled(p24, p26, p27, p28, p29, p30); // rs, e, d4-d7

int main()
{
    oled.cls();
    while(1) {
        int c = getchar();
        oled.putc(c);
    }       
}


Please log in to post comments.