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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3350|回復: 1
收起左側

發個ST7789的代碼,配HSD瀚彩,深超,信利

[復制鏈接]
ID:878047 發表于 2021-1-16 09:56 | 顯示全部樓層 |閱讀模式
  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. }
復制代碼


回復

使用道具 舉報

ID:935966 發表于 2021-7-22 18:12 來自觸屏版 | 顯示全部樓層
能教怎么點亮屏嗎
回復

使用道具 舉報

無效樓層,該帖已經被刪除
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 国产在线精品一区二区 | 久久三区 | 午夜a v电影| 男人阁久久 | 国产精品自产av一区二区三区 | 亚洲 中文 欧美 日韩 在线观看 | av在线播放网址 | 成人在线a | 亚洲成人第一页 | 欧美一二区 | 国产一区免费 | 久久精品国产v日韩v亚洲 | 欧美不卡一区二区三区 | 国产精品久久久久一区二区三区 | 成人三级影院 | 日本不卡视频在线播放 | аⅴ资源新版在线天堂 | 黄色一级毛片免费看 | 在线视频三区 | 午夜精品一区二区三区在线播放 | 四虎成人精品永久免费av九九 | 久久久久久久一区 | 自拍偷拍第一页 | 丁香婷婷在线视频 | 久久一区二区三区免费 | 久久99精品久久久水蜜桃 | 秋霞电影院午夜伦 | 91精品国产色综合久久 | 久久九 | 亚洲一区二区三区在线视频 | 日韩一区二区三区在线 | 精品国产免费人成在线观看 | 狠狠操在线 | 国产成人在线视频播放 | 欧区一欧区二欧区三免费 | 免费黄色片在线观看 | 欧美日韩视频在线播放 | 亚洲区中文字幕 | 中文字幕精品视频 | 亚洲视频在线免费 | 天堂av中文|