OLED/LCD/12864 WEB在线图片取模工具

释放双眼,带上耳机,听听看~!

取模软件好多,选择困难症又犯了,为了自救,所以自己做了个

工具地址:

http://tools.clz.me/

源代码:

https://github.com/coloz/image-to-bitmap-array

使用方法:

1.准备一张图片,图片分辨率应小于你的显示设备

2.在网页中上传图片

3.复制生成的代码到你的程序中

适用驱动库:u8glib、u8g2等Arduino图形显示设备驱动库。

适用设备: OpenJumper 12864 OLEDOpenJumper MINI12864 LCD(欢迎大家用自己的设备测试,可行的话回复下,我补上)

相关问题和建议,可以回帖提出

u8g2测试代码:

/*
使用u8g2显示数据
图形显示器:OpenJumper 12864 OLED
设备核心:SSD1306
*/

#include <U8g2lib.h>

#define rst  2
U8G2_SSD1306_128X64_NONAME_F_HW_I2C  u8g2(U8G2_R0 , rst);

//取模得到的数组
//width:55,height:64
const unsigned char col[] U8X8_PROGMEM= {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xfc,0xff,0x3f,0x00,0x00,0x00,0x00,0x3f,0x00,0xfc,0x00,0x00,0x00,0xc0,0x03,0x00,0xe0,0x03,0x00,0x00,0xf0,0x00,0x00,0x00,0x0f,0x00,0x00,0x38,0x00,0x00,0x00,0x1c,0x00,0x00,0x0e,0x00,0x00,0x00,0x78,0x00,0x00,0x07,0x00,0x00,0x00,0x60,0x00,0x80,0x03,0x00,0x00,0x00,0xc0,0x00,0xc0,0x01,0x00,0x00,0x00,0x80,0x03,0xe0,0x00,0x00,0x00,0x00,0x00,0x03,0x60,0x00,0x00,0x00,0x00,0x00,0x07,0x70,0x00,0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x00,0x00,0x00,0x00,0x0c,0x18,0x00,0x00,0x00,0x00,0x00,0x0c,0x18,0x00,0x00,0x00,0x00,0x00,0x18,0x0c,0x10,0x00,0x00,0x04,0x00,0x18,0x0c,0x18,0x00,0x00,0x0c,0x00,0x30,0x06,0x18,0x00,0x00,0x0c,0x00,0x30,0x06,0x18,0x00,0x00,0x0c,0x00,0x30,0x06,0x18,0x00,0x00,0x0c,0x00,0x30,0x06,0x00,0x00,0x00,0x00,0x00,0x60,0x02,0x00,0x00,0x00,0x00,0x00,0x60,0x03,0x00,0x00,0x00,0xe4,0x00,0x60,0x83,0x04,0x0c,0x06,0xa4,0x00,0x60,0x83,0x0d,0x8c,0x07,0x8c,0x00,0x60,0x03,0x0d,0xfc,0x01,0x08,0x00,0x30,0x03,0x01,0x70,0x00,0x00,0x00,0x30,0x03,0x00,0x00,0x00,0x00,0x00,0x30,0x03,0x00,0x00,0x00,0x00,0x00,0x30,0x06,0x00,0x00,0x00,0x00,0x00,0x18,0x06,0x00,0x00,0x00,0x00,0x00,0x18,0x06,0x00,0x00,0x00,0x00,0x00,0x0c,0x0e,0x00,0x00,0x00,0x00,0x00,0x0c,0x0c,0x00,0x00,0x00,0x00,0x00,0x06,0x1c,0x00,0x00,0x00,0x00,0x00,0x03,0x38,0x00,0x00,0x00,0x00,0xc0,0x01,0x70,0x00,0x00,0x00,0x00,0xe0,0x00,0xe0,0x00,0x00,0x00,0x00,0x78,0x00,0xc0,0x07,0x00,0x00,0x00,0x1e,0x00,0x00,0x3f,0x00,0x00,0x80,0x07,0x00,0x00,0x78,0x00,0x00,0xc0,0x03,0x00,0x00,0x60,0x00,0x60,0xc0,0x00,0x00,0x00,0x60,0x02,0x60,0xc0,0x00,0x00,0x00,0x60,0x06,0x60,0xc0,0x00,0x00,0x00,0x60,0x06,0x60,0xc0,0x00,0x00,0x00,0x60,0x06,0x30,0xc0,0x00,0x00,0x00,0x60,0x06,0x30,0xcc,0x00,0x00,0x00,0x60,0x06,0x18,0xcc,0x00,0x00,0x00,0x60,0x06,0x0c,0xcc,0x00,0x00,0x00,0x60,0x06,0x0e,0xc6,0x00,0x00,0x00,0xe0,0x0c,0x06,0x86,0x01,0x00,0x00,0xc0,0x18,0x02,0x83,0x03,0x00,0x00,0xe0,0x19,0xe7,0x01,0x03,0x00,0x00,0xf0,0xdf,0xff,0x00,0x03,0x00,0x00,0x38,0xc4,0x18,0x00,0x02,0x00,0x00,0x18,0x60,0x00,0x00,0x03,0x00,0x00,0x0c,0x60,0x00,0x00,0x03,0x00,0x00,0x0c,0x20,0x00,0xc0,0x01,0x00,0x00,0x18,0x60,0x00,0xe0,0x00,0x00,0x00,0x38,0x70,0x00,0x7c,0x00,0x00,0x00,0xf0,0xff,0xff,0x1f,0x00,0x00,0x00,0xc0,0x8f,0xff,0x03,0x00,0x00};

void setup(void) {
  u8g2.begin();
}

void loop(void) {
  u8g2.clearBuffer();           // 清空显示设备内部缓冲区
  u8g2.drawXBMP( 0 , 0 , 55 , 64 , col );     //50,50为图片尺寸,根据你的图片尺寸修改
  u8g2.sendBuffer();         // 显示缓冲区内容
  delay(1000);  
}
OLED/LCD/12864 WEB在线图片取模工具
OLED/LCD/12864 WEB在线图片取模工具
OLED/LCD/12864 WEB在线图片取模工具

 

转载文章,原文请查看:跳转查看原文

给TA打赏
共{{data.count}}人
人已打赏
其它

utf-8中文编码工具

2018-8-19 14:09:31

Nodemcu/ESP8266Nodemcu/ESP8266-进阶动态

使用 SMTP 服务器发送电子邮件:HTML、文本和附件-ESP8266/NodeMCU

2023-12-11 19:49:02

4 条回复 A文章作者 M管理员
  1. 葉藏

    感谢233333333333 ✗笑哭了✗

  2. 奈何col

    欢迎转载我写的文章,但也请注明出处:https://www.arduino.cn/thread-42174-1-1.html
    另外请不要把原图Arduino中文社区的水印去掉

    • Luca

      很抱歉未经允许转载,已注明原文地址和替换成原图

    • hockel

      大神来了???

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
'); })();