資源簡介
M31S1322_01_3.1寸oled模組驅動資料_201505
1. 外形尺寸超薄
2. 自發光:無需背光源,高對比度度,陽光下可視
3. 超廣視角,幾乎無視角限制
4. 低耗電流
5. 反應速度快: 10 微秒左右
6. 工作溫度范圍廣-40~85 度
7. 改善原來STN LCD 缺點,轉換為OLED 容易

代碼片段和文件信息
//定義ASCII庫
#include?“Asc5x8.h“? ???//ascii?8*16字庫
#include?“Asc6x12.h“? ???//ascii?8*16字庫
#include?“Asc8x16.h“? ???//ascii?8*16字庫
#include?“Asc12x24.h“? ???//ascii?12*24字庫
#include?“Asc20x40.h“? ???//ascii?20*40字庫
//自定義漢字庫
#include?“HZ12X12_S.h“? ???//12*12宋體自定義漢字庫
#include?“HZ16X16_S.h“? ???//16*16宋體自定義漢字庫
#include?“HZ24X24_S.h“? ???//24*24宋體自定義漢字庫
//?#include?“HZ24X24_H.h“? ???//24*24宋體自定義漢字庫
//?#include?“HZ24X24_K.h“? ???//24*24宋體自定義漢字庫
?
/***************************************************************
//??顯示12*12點陣漢字?2015-05晶奧測試通過
//??取模方式為:橫向取模左高位數據排列:從左到右從上到下????16列?12行?
//???num:漢字在字庫中的位置
//???x:?Start?Column??開始列?范圍?0~(256-16)
//???y:?Start?Row???開始行?0~63?
***************************************************************/
void?HZ12_12(?unsigned?char?x?unsigned?char?y?unsigned?char?num)
{
unsigned?char?x1j?;
x1=x/4;?
Set_Column_Address(Shift+x1Shift+x1+3);?//?設置列坐標,shift為列偏移量由1322決定。3為16/4-1
Set_Row_Address(yy+11);?
Set_Write_RAM(); ?// 寫顯存
?
for(j=0;j<24;j++)
{
?Con_4_byte(HZ12X12_S[num*24+j]);
}
}
//****************************************************
//???寫入一串12*12漢字?www.lcdsoc.com x坐標和字間距d要為4的倍數
//????num1num2:漢字在字庫中的位置 ?從num1顯示到num2
//????x:?Start?Column??開始列?范圍?0~(255-16)
//????y:?Start?Row????開始行?0~63
//????d:字間距離?0為無間距?
//*****************************************************
void?Show_HZ12_12(unsigned?char??xunsigned?char??y?unsigned?char??dunsigned?char?num1unsigned?char?num2)
{
??unsigned?char??id1;
??d1=d+16;
??for(i=num1;i ??{
??HZ12_12(xyi);
??x=x+d1;?????????????
??}
}
/***************************************************************
//??顯示16*16點陣漢字?2015-05晶奧測試通過
//??取模方式為:橫向取模左高位數據排列:從左到右從上到下????16列?16行?
//???num:漢字在字庫中的位置
//???x:?Start?Column??開始列?范圍?0~(256-16)
//???y:?Start?Row???開始行?0~63?
***************************************************************/
void?HZ16_16(?unsigned?char?x?unsigned?char?y?unsigned?char?num)
{
unsigned?char?x1j?;
x1=x/4;?
Set_Column_Address(Shift+x1Shift+x1+3);?//?設置列坐標,shift為列偏移量由1322決定。3為16/4-1
Set_Row_Address(yy+15);?
Set_Write_RAM(); ?// 寫顯存
?
for(j=0;j<32;j++)
{
?Con_4_byte(HZ16X16_S[num*32+j]);
}
??
}
//****************************************************
//???寫入一串16*16漢字?www.lcdsoc.com
//????num1num2:漢字在字庫中的位置 ?從num1顯示到num2
//????x:?Start?Column??開始列?范圍?0~(255-16)
//????y:?Start?Row????開始行?0~63
//????d:字間距離?0為無間距?
//x坐標和字間距d要為4的倍數
//*****************************************************
void?Show_HZ16_16(unsigned?char??xunsigned?char??y?unsigned?char??dunsigned?char?num1unsigned?char?num2)
{
??unsigned?char??id1;
??d1=d+16;
??for(i=num1;i ??{
??HZ16_16(xyi);
??x=x+d1;?????????????
??}
}
/***************************************************************
//??顯示24*24點陣漢字?2015-05晶奧測試通過
//??取模方式為:橫向取模左高位數據排列:從左到右從上到下????24列?24行?
//???num:漢字在字庫中的位置
//???x:?Start?Column??開始列?范圍?0~(255-16)
//???y:?Start?Row???開始行?0~63?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????767953??2005-01-31?21:17??image2lcd\Image2Lcd_29.exe
-----------?---------??----------?-----??----
???????????????767953????????????????????1
評論
共有 條評論