0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LPC812MAXとSSD1306で「12345678」を表示(16x24)(Keil Studio)

Posted at

x なぜかMBEDオンラインコンパイラが終わってしまったのでkeilに移行

x 過去ログをみよ

o_cop335.jpg

o_cop336.jpg




//oled_test2_16x24_812_1

#include "mbed.h"
#include "SSD1308.h"

//i2c initialization
//       SDA    SCL
I2C i2c(P0_10, P0_11); //812


//メイン関数
int main()
{

    wait_ms(500); //0.5秒の待ち

    int ii; //ループカウンター
    int nn; //文字カウンター

    // Instantiate OLED
    SSD1308 oled = SSD1308( &i2c , SSD1308_SA0);

    //char n1_8[] = "12345678";
    char n1_8[] = "87654321";
    //char n1_8[] =   "88888888";

    ii=0;
    for(nn=0; nn<8; nn++) {
        //                y   x
        oled.writeBigChar(0, ii*16,n1_8[nn]);
        ii = ii + 1;
    } //for
        
    while(1) {}

}//main




0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?