当前位置:网站首页>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;
}
}
}
边栏推荐
- 11 IO frame
- Vie procédurale
- Could not get unknown property ‘*‘ for SigningConfig container of type org. gradle. api. internal
- Cookie and session Basics
- cartographer_ local_ trajectory_ builder_ 2d
- 第九章 设置结构化日志记录(一)
- Fedora alicloud source
- Day4 branch and loop jobs
- 【PHP】PHP二维数组按照多个字段进行排序
- Tp5.0框架 PDO连接mysql 报错:Too many connections 解决方法
猜你喜欢

Leetcode114. 二叉树展开为链表

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

小小面试题之GET和POST的区别

The State Council issued a document to improve the application of identity authentication and electronic seals, and strengthen the construction of Digital Government

How to ensure the efficiency and real-time of pushing large-scale group messages in mobile IM?

redis探索之布隆过滤器

11 IO frame

Learn from small samples and run to the sea of stars

uni-app吸顶固定样式

Ad tutorial series | 4 - creating an integration library file
随机推荐
[arm] build boa based embedded web server on nuc977
Could not get unknown property ‘*‘ for SigningConfig container of type org.gradle.api.internal
【ARM】讯为rk3568开发板buildroot添加桌面应用
[red team] what preparations should be made to join the red team?
tensorlow:cifar100_ train
Installation and deployment of alluxio
数据存储:MySQL之InnoDB与MyISAM的区别
vscode config
LeetCode_二叉搜索树_简单_108.将有序数组转换为二叉搜索树
Official image acceleration
第九章 设置结构化日志记录(一)
SSH connected to win10 and reported an error: permission denied (publickey, keyboard interactive)
Mongodb image configuration method
AD教程系列 | 4 - 创建集成库文件
Tensorflow visualization tensorboard "no graph definition files were found." error
9 common classes
Create SSH key pair configuration steps
Tp5.0框架 PDO连接mysql 报错:Too many connections 解决方法
《财富自由之路》读书之一点体会
线程优先级