STM32CubeMX-Keil_uVision5/FinalHomework/Core/Inc/test.h

51 lines
2.7 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/****************************************************************************************************
//=========================================电源接线================================================//
// LCD模块 STM32单片机
// VCC 接 DC5V/3.3V //电源
// GND 接 GND //电源地
//=======================================液晶屏数据线接线==========================================//
//本模块默认数据总线类型为SPI总线
// LCD模块 STM32单片机
// SDA 接 PB15 //液晶屏SPI总线数据写信号
//=======================================液晶屏控制线接线==========================================//
// LCD模块 STM32单片机
// LED 接 PB9 //液晶屏背光控制信号如果不需要控制接5V或3.3V
// SCK 接 PB13 //液晶屏SPI总线时钟信号
// A0 接 PB10 //液晶屏数据/命令控制信号
// RESET 接 PB12 //液晶屏复位控制信号
// CS 接 PB11 //液晶屏片选控制信号
//=========================================触摸屏触接线=========================================//
//如果模块不带触摸功能或者带有触摸功能,但是不需要触摸功能,则不需要进行触摸屏接线
// LCD模块 STM32单片机
// T_IRQ 接 PC10 //触摸屏触摸中断信号
// T_DO 接 PC2 //触摸屏SPI总线读信号
// T_DIN 接 PC3 //触摸屏SPI总线写信号
// T_CS 接 PC13 //触摸屏片选控制信号
// T_CLK 接 PC0 //触摸屏SPI总线时钟信号
**************************************************************************************************/
/* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, QD electronic SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
**************************************************************************************************/
#ifndef __TEST_H__
#define __TEST_H__
#include "main.h"
void DrawTestPage(uint8_t *str);
void Test_Color(void);
void Test_FillRec(void);
void Test_Circle(void);
void Test_Triangle(void);
void English_Font_test(void);
void Chinese_Font_test(void);
void Pic_test(void);
void Load_Drow_Dialog(void);
void main_test(void);
void Rotate_Test(void);
#endif