WB2 原神启动 OLED 显示

[复制链接]
查看344 | 回复4 | 4 天前 | 显示全部楼层 |阅读模式
原神.jpg
  1. #include "OLED.h"
  2. #include "OLED_Data.h"


  3. int main(void)
  4. {
  5.         /*OLED初始化*/
  6.         OLED_Init();
  7.         OLED_DrawRectangle(0, 0, 128, 64, OLED_FILLED);
  8.         /*在(96, 48)位置显示图像,宽16像素,高16像素,图像数据为Diode数组*/
  9.         OLED_ShowImage(20, 0, 102, 64, gImage_111);
  10.         /*调用OLED_Update函数,将OLED显存数组的内容更新到OLED硬件进行显示*/
  11.         OLED_Update();

  12. }
复制代码
  1. const uint8_t gImage_111[] = {

  2. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  3. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  4. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  5. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  6. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  7. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  8. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  9. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  10. 0xFF,0xF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0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  48. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  49. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  50. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFF,
  51. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  52. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  53. };
复制代码






相关图片 及取好的字模 打包
配套驱动
[Ai-WB2] 移植oled库
https://bbs.ai-thinker.com/forum ... 0&fromuid=12726


0.96oled取模教程
https://bbs.ai-thinker.com/forum ... 2&fromuid=12726
源图片和字模.zip (5.16 KB, 下载次数: 0)
回复

使用道具 举报

hdydy | 4 天前 | 显示全部楼层
原神启动
回复

使用道具 举报

爱笑 | 3 天前 | 显示全部楼层
不错不错~
用心做好保姆工作
回复

使用道具 举报

妖猊 | 3 天前 | 显示全部楼层
太厉害了
回复

使用道具 举报

小小鸟 | 前天 08:32 | 显示全部楼层
66666
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则