当前位置:网站首页>dsPIC30F6014a LCD 方块显示
dsPIC30F6014a LCD 方块显示
2022-07-01 09:06: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();}
}
}

边栏推荐
- Shell脚本-for循环和for int循环
- nacos简易实现负载均衡
- Personal decoration notes
- It technology ebook collection
- Shell script - string
- 如何一站式高效管理固定资产?
- Ape anthropology topic 20 (the topic will be updated from time to time)
- Simple load balancing with Nacos
- Set the type of the input tag to number, and remove the up and down arrows
- Dynamic proxy
猜你喜欢

3D printing Arduino four axis aircraft
![[video game training] real topic of 2013 video game of infrared optical communication device](/img/ef/c2c45c1c6c24aed0a4e93101047372.png)
[video game training] real topic of 2013 video game of infrared optical communication device

足球篮球体育比赛比分直播平台源码/app开发建设项目

小鸟识别APP

树结构---二叉树2非递归遍历

2.4 激活函数

NiO zero copy

Understanding and implementation of AVL tree

How to manage fixed assets efficiently in one stop?

Personal decoration notes
随机推荐
It technology ebook collection
LogBack
Flink interview questions
Pain points and solutions of equipment management in large factories
Shell script echo command escape character
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DS18B20温度传感器 +NodeJs本地服务+ MySQL数据库
【pytorch】transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
【pytorch学习】torch.device
Mise en œuvre simple de l'équilibrage de la charge par nacos
Jetson Nano 安装TensorFlow GPU及问题解决
【电赛训练】红外光通信装置 2013年电赛真题
Key points of NFT supervision and overseas policies
Is it safe to dig up money and make new shares
LogBack
Microcomputer principle - bus and its formation
【pytorch】nn.AdaptiveMaxPool2d
The fixed assets management system enables enterprises to dynamically master assets
SDN_简单总结
[ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + MQ Series + nodejs local service + MySQL storage
Mysql8.0 learning record 17 -create table