当前位置:网站首页>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;
}
}
}
边栏推荐
- Introduction to GUI programming to game practice (I)
- How to make your big file upload stable and fast?
- Tensorflow and deep learning day 3
- [unity3d] human computer interaction input
- C# 39. Conversion between string type and byte[] type (actual measurement)
- RESNET practice in tensorflow
- LSTM in tensorflow_ Layers actual combat
- Gd32f3x0 official PWM drive has a small positive bandwidth (inaccurate timing)
- vscode config
- Recursively traverse directory structure and tree presentation
猜你喜欢
Supplementary course on basic knowledge of IM development (II): how to design a server-side storage architecture for a large number of image files?
Implementation of IM message delivery guarantee mechanism (II): ensure reliable delivery of offline messages
AD教程系列 | 4 - 创建集成库文件
Leetcode114. 二叉树展开为链表
The beautiful scenery is natural, and the wonderful pen is obtained by chance -- how is the "wonderful pen" refined?
基于SDN的DDoS攻击缓解
10 set
A beginner's entry is enough: develop mobile IM from zero
慢慢学JVM之缓存行和伪共享
Redis discovery bloom filter
随机推荐
cartographer_ optimization_ problem_ 2d
Apktool tool usage document
MySQL source code reading (II) login connection debugging
使用Jedis监听Redis Stream 实现消息队列功能
Installation and deployment of alluxio
Could not get unknown property ‘*‘ for SigningConfig container of type org. gradle. api. internal
redis探索之布隆过滤器
基于SDN的DDoS攻击缓解
Classic theory: detailed explanation of three handshakes and four waves of TCP protocol
Redis installation on Linux
红队得分方法统计
The localstorage browser stores locally to limit the number of forms submitted when tourists do not log in.
Pytorch forecast house price
PHP 2D / multidimensional arrays are sorted in ascending and descending order according to the specified key values
2021年OWASP-TOP10
cartographer_local_trajectory_builder_2d
Procedural life
cartographer_ local_ trajectory_ builder_ 2d
创建 SSH 秘钥对 配置步骤
thread priority