液晶12864图像取模方法

news/2024/10/30 21:30:06/

液晶12864图像取模需要三种软件,一种是改变图像分辨率的软件(如PS)、一种是取模软件(如PCtoLCD2002.exe)、一种是把图像格式转换成bmp格式的软件(如Image2Lcd)
第一步:
确定要取模的图像如:
天道酬勤
把这幅图片的分辨率改成128x64。
第二步:
打开软件
改变图片格式
在这里插入图片描述
打开你事先准备好的那个分辨率128x64的图片,然后按上面的设置配置一下,最后保存。
第三步:
使用软件PCtoLCD2002,
模式选择
设置
在这里插入图片描述
1,打开经过软件Image2Lcd处理后的.bmp文件;2,点击生成字模:
unsigned char code tian[ ] = {
0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x80,0x80,0xF8,0x78,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0xFF,0xFF,0xFE,0xFE,0xFE,0xFF,0xFF,0x03,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0xC0,0xC0,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0xFF,0xCF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x3E,0xFC,0xFC,0xFC,0xC0,0xC0,0x00,0xFE,0xFF,0xFE,0xFC,0xF0,
0xC0,0x00,0xFC,0xFC,0x0F,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x3C,0x3C,0xFC,0xFC,0xFE,0xFE,0xFF,
0xFF,0xFF,0x3F,0x3E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x20,0x38,0x3E,0x3F,0x3F,0xFF,0xFF,0xFF,0xE7,0xE7,0xE1,0xE0,
0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x06,0x1F,0x1F,0x1F,0xDF,0x1F,0x1F,0xDF,0x1F,0x07,0x00,0x00,
0x00,0xC0,0xFE,0x00,0x00,0xFF,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x1F,0x1F,0x07,0x00,0x00,0xC1,0xE7,0xFF,0xFF,
0xFF,0xFF,0x3F,0x3E,0x1F,0x1F,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFE,0x1F,0x1F,0x00,
0xC0,0xC0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0xE0,0xF0,0xFC,0x1C,0x8C,0x8F,0xFF,0xFF,0xFF,0xFF,0x03,0x63,0x60,
0xE0,0xE0,0xE0,0xFC,0xFF,0x7F,0x1F,0x1F,0x1C,0x9C,0xFC,0xF0,0xF0,0xE0,0x60,0x00,
0x00,0x00,0x00,0x00,0xE0,0x60,0x90,0xFF,0xFF,0x70,0x9C,0xFF,0x1C,0x0C,0xFC,0xFF,
0xF0,0xFF,0xEF,0x60,0xF0,0xFF,0x1C,0x70,0xFF,0xFF,0x1C,0x1C,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,0x0C,0x00,0x00,0x0F,0x0F,0x03,0xF3,0xFF,0x9F,
0xFF,0xEF,0x6C,0xEC,0xFC,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0xE0,0xFC,0xFC,0xFF,0xFF,0xFC,0xFF,0x9F,
0x1F,0x0F,0x0F,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x0F,0x3F,0xFF,0xFF,0xFE,0x3F,0xCF,0xFF,0xFF,0xFF,0x31,0x00,0xF8,0xF0,
0xFF,0xFF,0x3F,0x07,0x01,0x00,0x00,0x00,0xF8,0xFF,0xFF,0x3F,0x0F,0x07,0x00,0x00,
0x00,0x00,0xF0,0xF8,0xFF,0xFE,0xFF,0xFF,0xFF,0xFE,0xFF,0xF7,0x30,0xF8,0xFF,0x07,
0x87,0xFF,0x0F,0xF0,0xF9,0xFF,0x08,0xC0,0xFF,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x06,0xFF,0xFF,0xFF,
0x3F,0x0F,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x06,0x0F,0x07,0xF7,0xFF,0xFF,0xFF,0xFF,0x0F,0x3F,0x3F,
0xFE,0xF8,0xF8,0xF0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x80,0xE7,0xFB,0xFB,0x7F,0x1F,0xFF,0xFF,0xFF,0x7F,0x1F,
0x83,0x00,0x00,0x80,0xF8,0xF8,0xFC,0xFF,0x1F,0x07,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x1F,0xFF,0xFF,0x7F,0x7F,0x1F,0x1F,0x00,0xFC,0xFF,0x1F,0x07,
0x07,0x00,0x07,0x03,0x00,0x00,0x00,0xE7,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x80,0x80,0x83,0x87,0x87,0xFC,0xF8,0xE0,0xE0,0xE0,0xFF,0xFF,0xE4,
0xE4,0xE7,0xF8,0xFF,0xFF,0xFF,0xFC,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,
0x00,0x00,0x00,0x80,0xE0,0xF8,0xFC,0xFF,0x7F,0x7F,0x7F,0x07,0x07,0x00,0x00,0x00,
0x00,0x03,0x07,0x1F,0x7F,0xFF,0xFF,0xFC,0xF8,0xF8,0xE0,0xE0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x30,0x3F,0x3F,0x0F,0x03,0x00,0x00,0x00,
0x00,0x3F,0x3F,0x3F,0x3F,0x3F,0x0F,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x03,
0x03,0x03,0x0F,0x0F,0x2F,0x3F,0x3F,0x3F,0x3F,0x0F,0x0F,0x0F,0x0F,0x03,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x07,0x07,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/“C:\Users\Administrator\Desktop\128\tiandao.bmp”,0/
};
最后在液晶12864上效果图:
效果图
到这里已经讲完了。(由于我是用电脑自带的画图改的分辨率,出来的效果不是太理想,那两个软件在网上下载就行了,很好找)


http://www.ppmy.cn/news/365053.html

相关文章

51单片机 | LCD1602 液晶显示实验

文章目录 一、LCD1602 介绍1.LCD1602 简介2.LCD1602 常用指令3.LCD1602 使用 二、硬件设计三、软件设计1.LCD1602 驱动函数2.主函数 四、实验现象 在前面章节,我们已经学习过几种显示装置,例如静态数码管、动态数码管、 8*8LED 点阵、串口通信。使用它们…

液晶显示屏的C语言编码,液晶屏代码单独文件

同样我们创建好“lcd.c”和“lcd.h”,然后添加进工程文件中。“lcd.c”的代码集合了所有宋老师为我们写好的各种常用函数。 1.lcd.c的代码#include #include /* 等待液晶准备好 */ void LcdWaitReady() {unsigned char sta; LCD1602_DB = 0xFF; LCD1602_RS = 0; LCD1602_RW …

【常用传感器】LCD1602液晶工作原理详解及例程代码

本文带你详细的了解下LCD1602液晶的工作原理以及代码编写 LCD1602液晶显示屏LCD1602主要参数 LCD发光原理LCD屏幕的组成:LCD和OLED区别: LCD1602引脚接线:LCD1602的RAM地址映射及标准字库表LCD1602读写操作LCD1602的指令操作LCD初始化LCD写地…

液晶显示屏的C语言编码,液晶屏代码讲解

关于指针和1602液晶屏的知识讲解我们就不赘述了,《手把手教你学51单片机》文档第12,13章有很详细的讲解,我们也不用再自己搞些与众不同的驱动代码,没必要再“重新发明轮子”,只需直接移植使用宋老师为我们写好的代码就好。那么宋老师的液晶屏代码原理他也在文档详细讲解了,…

12864液晶显示原理(C代码)

内容包括液晶屏常识,12864液晶显示原理,点阵型LCD文字与图形软硬件设计实例。紫色文字是超链接,点击自动跳转至相关博文。持续更新,原创不易! 目录: 一、12864液晶显示原理 1、点阵LCD的显示原理 2、12…

木马免杀全攻略

探讨:如何选购高端背投电视? 背投电视 , 背投电视机 , 背投电视维修 , 背投电视报价 , 长虹背投电视 , 液晶背投电视 , 三星背投电视 , 日立背投电视 , 东芝背投电视 , 背投电视价格 , 索尼背投电视 , tcl背投电视 , 松下背投电视 , 华美贵雅装饰设计…

LOCS技术介绍

转自:http://optoelectronic.jobui.com/blog/20311.html http://www.coema.org.cn/bbs/dispbbs.asp?boardID44&ID6894&page1 http://www.coema.org.cn/bbs/dispbbs.asp?boardID44&ID8639&page1 http://www.coema.org.cn/bbs/dispbbs.asp?boar…

绿色IT生态

从服务器到UPS,从台式电脑到周边外设设备,我们将一幅全景画面的绿色生态图展现在你的面前。 绿色IT生态图绿色IT生态图 2绿色IT生态图 3绿色IT生态图 4绿色IT生态图 5 IT产业链环环相扣,面对能源消耗危机,只有链条上的各个环节都发…