当前位置:网站首页>Daily production training report (17)
Daily production training report (17)
2022-06-26 05:24:00 【Super cute sandwich kids】
full name : Caojiaxin date :7 month 6 Number
Today's learning task :ARM Chip learning , display , Photo 、 Display of Chinese characters .
Today's task completion :100%.
Summary of problems encountered in today's development : Press the key to turn the picture
Today's unsolved problems : nothing .
Today's development gains : understand ARM How to use the chip , The specific code needs to be learned
Self evaluation : commonly
#include "main.h"
#include "led.h"
#include "key.h"
extern const unsigned char gImage_1[391680];// Picture shows
extern const unsigned char gImage_2[391680];
extern const unsigned char gImage_1008[391680];
extern const unsigned char gImage_cjx[391680];
extern const unsigned char hanzi[][32];
void delay(volatile int count)// Delay function
{
while (count--);
}
void Main(void)
{
int key;
int i=0;
int j=0;
int p=0;
int q=0;
LCD_displaypicture(0,0,480,272,gImage_cjx);
LCD_clear(0x000000);
LCD_displaypicture(0,0,480,272,gImage_cjx);
KEY_INIT();// Key initialization
while(1)
{
key =KEY_Scan(0);// Take key value
if(i>3)
{
i=0;
}
if(i<0)
{
i=4;
}
if(key==1)
{
i++;//
j=0;
q=0;
}
if(key==2)
{
i--;//
j=0;
q=0;
}
if(key==3)
{
j=1;
q=0;
}
if(j)
{
i++;//
delay(2000000);
}
if(key==4)//
{
j=0;
i=0;
q=1;
LCD_clear(0xffffff);
}
if(q)
{
if(p<480)
{
p++;
delay(100);
LCD_Display_16x16(p-32,136, 0x000000, hanzi[0]);
LCD_Display_16x16(p-16,136, 0x000000, hanzi[1]);
LCD_Display_16x16(p,136, 0x000000, hanzi[2]);
LCD_clear(0xffffff);
}
}
if(p>=480)
{
p=0;
}
switch(i)
{
case 1:LCD_displaypicture(0,0,480,272,gImage_1);break;
case 2:LCD_displaypicture(0,0,480,272,gImage_2);break;
case 3:LCD_displaypicture(0,0,480,272,gImage_1008);break;
}
}
}
边栏推荐
- Mongodb image configuration method
- RESNET practice in tensorflow
- localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。
- Lstms in tensorflow_ Cell actual combat
- 【MYSQL】MySQL 百万级数据量分页查询方法及其优化
- Supplementary course on basic knowledge of IM development (II): how to design a server-side storage architecture for a large number of image files?
- Day4 branch and loop jobs
- [unity3d] rigid body component
- 电机专用MCU芯片LCM32F037系列内容介绍
- How does P2P technology reduce the bandwidth of live video by 75%?
猜你喜欢

Supplementary course on basic knowledge of IM development (II): how to design a server-side storage architecture for a large number of image files?

Leetcode114. Expand binary tree into linked list

SOFA Weekly | 开源人—于雨、本周 QA、本周 Contributor

FastAdmin Apache下设置伪静态

Tp5.0框架 PDO连接mysql 报错:Too many connections 解决方法

国务院发文,完善身份认证、电子印章等应用,加强数字政府建设

关于支付接口回调地址参数字段是“notify_url”,签名过后的特殊字符url编码以后再解码后出现错误(¬ , ¢, ¤, £)

cartographer_local_trajectory_builder_2d

Redis discovery bloom filter
![C# 39. string类型和byte[]类型相互转换(实测)](/img/33/046aef4e0c1d7c0c0d60c28e707546.png)
C# 39. string类型和byte[]类型相互转换(实测)
随机推荐
Learn cache lines and pseudo sharing of JVM slowly
2021年OWASP-TOP10
瀚高数据库自定义操作符‘!~~‘
[geek] product manager training camp
First day of deep learning and tensorflow learning
PHP二维/多维数组按照指定的键值来进行升序和降序
data = self._ data_ queue. get(timeout=timeout)
Could not get unknown property ‘*‘ for SigningConfig container of type org. gradle. api. internal
Protocol selection of mobile IM system: UDP or TCP?
uni-app吸顶固定样式
Day4 branch and loop jobs
数据存储:MySQL之InnoDB与MyISAM的区别
无线网络存在的安全问题及现代化解决方案
Security problems in wireless networks and modern solutions
apktool 工具使用文档
Recursively traverse directory structure and tree presentation
小小面试题之GET和POST的区别
vscode config
Henkel database custom operator '~~‘
Technical problems to be faced in mobile terminal im development