当前位置:网站首页>Dspic30f6014a LCD block display
Dspic30f6014a LCD block display
2022-07-01 09:22:00 【iCxhust】
void lcd_test00(void)
{
unsigned char i,page;
CSA=0;CSB=0;//left block
Nop();
write_com(0xc0);
for(page=0xb8;page<0xb8+8;page++)
{
write_com(page);
write_com(0x40);
//for()
if((page-0xb8)%2==0)
{
for(i=0;i<64;i++)
{
if((i/8%2)==0)
{write_data(0xff);}
else
{write_data(0);}
}
}
else
{
for(i=0;i<64;i++)
{
if((i/8%2)==0)
{write_data(0x0);}
else
{write_data(0xff);}
}
}void clear_all_ram(unsigned char b)
{
unsigned char i,page;
//--------------------------------------
CSA=0;CSB=0;//left block
Nop();
write_com(0xc0);
for(page=0xb8;page<0xc0;page++)
{
write_com(page);
write_com(0x40);
for(i=0;i<64;i++)
{write_data(b);}
}
NOP();
//--------------------------------------
CSA=0;
Nop();Nop();Nop();Nop();Nop();
CSB=1;//medium block
Nop();
write_com(0xc0);
for(page=0xb8;page<0xc0;page++)
{
write_com(page);
write_com(0x40);
for(i=0;i<64;i++)
{write_data(b);}
}
NOP();
//--------------------------------------
CSA=1;CSB=0;//right block
Nop();
write_com(0xc0);
for(page=0xb8;page<0xc0;page++)
{
write_com(page);
write_com(0x40);
for(i=0;i<64;i++)
{write_data(b);}
}
NOP();
}
void delay1s(void)
{
unsigned int i,j;
for(i=0;i<800;i++)
{
for(j=0;j<50;j++)
{NOP();}
}
}

边栏推荐
- 【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云和Arduino的化学环境系统检测,支持钉钉机器人告警
- Jetson nano installs tensorflow GPU and problem solving
- 【pytorch】2.4 卷积函数 nn.conv2d
- [ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + MQ Series + nodejs local service + MySQL storage
- How to manage fixed assets well? Easy to point and move to provide intelligent solutions
- 【pytorch】nn. AdaptiveMaxPool2d
- Promise asynchronous programming
- Tree structure --- binary tree 1
- pcl_ Viewer command
- 【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DS18B20温度传感器 +NodeJs本地服务+ MySQL数据库
猜你喜欢

Tree structure -- binary tree 2 non recursive traversal

dsPIC30F6014a LCD 方块显示

Principle and application of single chip microcomputer timer, serial communication and interrupt system

MapReduce编程基础

2.2 【pytorch】torchvision.transforms

3D打印Arduino 四轴飞行器

OSPF - virtual link details (including configuration commands)

PR training notes

Vsync+ triple cache mechanism +choreographer

An overview of the design of royalties and service fees of mainstream NFT market platforms
随机推荐
Why is the Ltd independent station a Web3.0 website!
Design and manufacture of simple digital display electronic scale
Key points of NFT supervision and overseas policies
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于物联网的GY906红外测温门禁刷卡系统
2.2 【pytorch】torchvision.transforms
2.3 【pytorch】数据预处理 torchvision.datasets.ImageFolder
ES6-const本质与完全不可改实现(Object.freeze)
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的温湿度监控系统
Shell script -select in loop
Is it safe to dig up money and make new shares
2.3 【kaggle数据集 - dog breed 举例】数据预处理、重写Dataset、DataLoader读取数据
Microcomputer principle - bus and its formation
Mise en œuvre simple de l'équilibrage de la charge par nacos
JS prototype inheritance can only inherit instances, not constructors
nacos服务配置和持久化配置
I use flask to write the website "one"
序列化、监听、自定义注解
MT7628K eCos开发入门
Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)
Niuke monthly race 22 tree sub chain