ST7735(パラレル)で遊ぶ3(1か月から3か月の長期記事)ATM0177B5



x 学術調査研究目的で非営利、一部参照しています。(例外条件に当たると思います)


参考したサイト　アイテンドウ


資料


ST7735(パラレル)現行品

★ST7735★1.44★TFT液晶with基板 [M-Y1411-2P]


![o_cop519.jpg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/840352/10e0a8ec-6a18-4f2d-67a2-52519e09d4e6.jpeg)



https://www.aitendo.com/product/20896




●(販売終了)


TFT液晶モジュール(1.44/128×128） [ZY-FGD1442701V1]



![o_cop520.jpg](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/840352/bb163fd7-f1d9-f497-864a-197d8310a3c1.jpeg)




https://www.aitendo.com/product/1621


ソース全部を改変なく　製品の調査目的　学術調査研究目的で参照しています


該当サイト アイテンドウ


http://aitendo3.sakura.ne.jp/aitendo_data/product_img/lcd/tft/ZY-FGD1442701V1/st7735r/ST7735s_ini_code.txt


内容


```c++


void TXDT144TF_ST7735S_Init(void)

{

//----------  ST7735S Reset Sequence  --------//

LCD_RESET=1;

Delayms (1); //Delay 1ms

LCD_RESET=0;

Delayms (1); //Delay 1ms

LCD_RESET=1;

Delayms (120); //Delay 120ms

//----------End ST7735S Reset Sequence--------//

LCD_Write_CMD(0x11); //Sleep out

Delayms (120); //Delay 120ms

//----------    ST7735S Frame rate    --------//

LCD_Write_CMD(0xB1); //Frame rate 80Hz

LCD_Write_Data(0x02);

LCD_Write_Data(0x35);

LCD_Write_Data(0x36);

LCD_Write_CMD(0xB2); //Frame rate 80Hz

LCD_Write_Data(0x02);

LCD_Write_Data(0x35);

LCD_Write_Data(0x36);

LCD_Write_CMD(0xB3); //Frame rate 80Hz

LCD_Write_Data(0x02);

LCD_Write_Data(0x35);

LCD_Write_Data(0x36);

LCD_Write_Data(0x02);

LCD_Write_Data(0x35);

LCD_Write_Data(0x36);

//----------End ST7735S Frame rate--------//

LCD_Write_CMD(0xB4); //Dot inversion

LCD_Write_Data(0x03);

//----------ST7735S Power Sequence--------//

LCD_Write_CMD(0xC0);

LCD_Write_Data(0xA2);

LCD_Write_Data(0x02);

LCD_Write_Data(0x84);

LCD_Write_CMD(0xC1);

LCD_Write_Data(0xC5);

LCD_Write_CMD(0xC2);

LCD_Write_Data(0x0D);

LCD_Write_Data(0x00);

LCD_Write_CMD(0xC3);

LCD_Write_Data(0x8D);

LCD_Write_Data(0xEA);

LCD_Write_CMD(0xC4);

LCD_Write_Data(0x8D);

LCD_Write_Data(0xEE);

//----------End ST7735S Power Sequence--------//

LCD_Write_CMD(0xC5); //VCOM

LCD_Write_Data(0x05);

LCD_Write_CMD(0x36); //MX, MY, RGB mode

LCD_Write_Data(0xC8);

//----------ST7735S Gamma Sequence--------//

LCD_Write_CMD(0xE0);

LCD_Write_Data(0x03);

LCD_Write_Data(0x1B);

LCD_Write_Data(0x09);

LCD_Write_Data(0x0E);

LCD_Write_Data(0x32);

LCD_Write_Data(0x2D);

LCD_Write_Data(0x28);

LCD_Write_Data(0x2C);

LCD_Write_Data(0x2B);

LCD_Write_Data(0x29);

LCD_Write_Data(0x30);

LCD_Write_Data(0x3B);

LCD_Write_Data(0x00);

LCD_Write_Data(0x01);

LCD_Write_Data(0x02);

LCD_Write_Data(0x10);

LCD_Write_CMD(0xE1);

LCD_Write_Data(0x03);

LCD_Write_Data(0x1B);

LCD_Write_Data(0x09);

LCD_Write_Data(0x0E);

LCD_Write_Data(0x32);

LCD_Write_Data(0x2E);

LCD_Write_Data(0x28);

LCD_Write_Data(0x2C);

LCD_Write_Data(0x2B);

LCD_Write_Data(0x28);

LCD_Write_Data(0x31);

LCD_Write_Data(0x3C);

LCD_Write_Data(0x00);

LCD_Write_Data(0x00);

LCD_Write_Data(0x02);

LCD_Write_Data(0x10);

//----------End ST7735S Gamma Sequence--------//

LCD_Write_CMD(0x3A); //65k mode

LCD_Write_Data(0x05);

LCD_Write_CMD(0x29); //Display on

}



void ST7735S_Enter_Sleep(void)

{

LCD_Write_CMD(0x10); //Sleep in

Delayms (120); //Delay 120ms

}

void ST7735S_Exit_Sleep(void)

{

LCD_Write_CMD(0x11); //Sleep out

Delayms (120); //Delay 120ms

}



```