久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

標題: 發個ST7789的代碼,配HSD瀚彩,深超,信利 [打印本頁]

作者: KKikk    時間: 2021-1-16 09:56
標題: 發個ST7789的代碼,配HSD瀚彩,深超,信利
  1. void Init_ST7789V_HSD280()
  2. {        
  3.         LCD_reset();

  4.         write_cmd(0x11);
  5.         delayms(150); //Delay 120ms
  6.         //--------------------------------ST7789V Frame rate setting-----------------

  7.         write_cmd(0xb2);        
  8.         write_dat(0x0c);
  9.         write_dat(0x00);
  10.         write_dat(0x33);
  11.         write_dat(0x33);
  12.         write_cmd(0xb7);
  13.         write_dat(0x35);
  14.         //---------------------------------ST7789S Power setting--------------------------------------//
  15.         write_cmd(0xbb);
  16.         write_dat(0x28);

  17.         write_cmd(0xc0);
  18.         write_dat(0x2c);

  19.         write_cmd(0xc2);
  20.         write_dat(0x01);

  21.         write_cmd(0xc3);
  22.         write_dat(0x10);

  23.         write_cmd(0xc4);
  24.         write_dat(0x20);

  25.         write_cmd(0xc6);
  26.         write_dat(0x0f);

  27.         write_cmd(0xd0);
  28.         write_dat(0xa4);
  29.         write_dat(0xa1);
  30.         //--------------------------------ST7789S gamma setting---------------------------------------//
  31.         write_cmd(0xe0);
  32.         write_dat(0xd0);
  33.         write_dat(0x00);
  34.         write_dat(0x02);
  35.         write_dat(0x07);
  36.         write_dat(0x0a);
  37.         write_dat(0x28);
  38.         write_dat(0x32);
  39.         write_dat(0x44);
  40.         write_dat(0x42);
  41.         write_dat(0x06);
  42.         write_dat(0x0e);
  43.         write_dat(0x12);
  44.         write_dat(0x14);
  45.         write_dat(0x17);

  46.         write_cmd(0xe1);
  47.         write_dat(0xd0);
  48.         write_dat(0x00);
  49.         write_dat(0x02);
  50.         write_dat(0x07);
  51.         write_dat(0x0a);
  52.         write_dat(0x28);
  53.         write_dat(0x31);
  54.         write_dat(0x54);
  55.         write_dat(0x47);
  56.         write_dat(0x0e);
  57.         write_dat(0x1c);
  58.         write_dat(0x17);
  59.         write_dat(0x1b);
  60.         write_dat(0x1e);

  61. /*
  62.         //*********SET RGB Interfae***************
  63.         write_cmd(0xB0);
  64.         write_dat(0x11); //set RGB interface and DE mode.
  65.         write_dat(0xF0);
  66.         //        write_dat(0x00);

  67.         write_cmd(0xB1);
  68.         write_dat(0x40); // set DE mode ; SET Hs,Vs,DE,DOTCLK signal polarity
  69.         write_dat(0x09);
  70.         write_dat(0x14);
  71. */
  72.         //-------------display and color format setting--------------//
  73.         write_cmd(0x36);
  74.         write_dat(0x00);

  75.         write_cmd(0x3a);
  76.         write_dat(0x65);

  77.         write_cmd(0x29);
  78.         delayms(50);
  79. }
復制代碼



作者: TFT1461441488    時間: 2021-7-22 18:12
能教怎么點亮屏嗎




歡迎光臨 (http://m.zg4o1577.cn/bbs/) Powered by Discuz! X3.1
主站蜘蛛池模板: 国产色一区 | 黄色成年人网站 | 中文字幕不卡在线 | 九九国产精品视频 | 欧美资源在线 | 天天干天天操天天 | 亚洲永久免费 | 午夜性视频 | 久久久久久久影院 | 中文字幕黄色片 | 中文字字幕码一二三区 | 亚洲成a人 | 免费视频一区 | 亚洲在线一区二区 | 成人在线播放视频 | 亚洲精品一区中文字幕乱码 | 中文字幕有码在线 | 久久视频在线免费观看 | 2017天天干| 成人国产一区 | 看黄色大片 | 天天摸夜夜操 | 国产在线成人 | 久久精品小视频 | 成人av免费看 | 激情综合婷婷 | 日韩在线中文字幕 | 日韩中文字幕在线视频 | 97免费在线 | 久久久综合视频 | 91一级片| 青青草福利视频 | 黄色1级视频 | 97精品在线视频 | 欧美精品黄色 | 久久男人天堂 | 日韩精品一区二区视频 | 国产精品三级视频 | 男女av在线 | 一区二区不卡视频 | 欧美国产日韩精品 |