当前位置: 首页 > news >正文

快站建站怎么收费的网络公关公司

快站建站怎么收费的,网络公关公司,网页设计与制作黄俊峰,建设局办的焊工证全国通用吗注:本文基于stm32使用FMC驱动SDRAM(IS42S32800G-6BLI)工程继续开发 本例使用安富莱的H743XIH板子驱动LTDC点亮7寸LCD 硬件接线:RGB888 一、cubemx配置 1、LTDC配置 注意此引脚应于上面的硬件接线图一致 2、配置DMA2D 3、背光引脚和触摸引脚 4、时钟…

注:本文基于stm32使用FMC驱动SDRAM(IS42S32800G-6BLI)工程继续开发
本例使用安富莱的H743XIH板子驱动LTDC点亮7寸LCD
硬件接线:RGB888
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

一、cubemx配置

1、LTDC配置

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
注意此引脚应于上面的硬件接线图一致

2、配置DMA2D

在这里插入图片描述
在这里插入图片描述

3、背光引脚和触摸引脚

在这里插入图片描述

4、时钟配置

在这里插入图片描述
在这里插入图片描述

5、定时器配置

定时器6用来做精确延时
在这里插入图片描述
TIM7配置成1ms中断一次
在这里插入图片描述
在这里插入图片描述
触摸先不予弄
生成代码…

二、代码编写

1、移植文件至工程中,可以去下载完整工程中获取

字体文件
ascii_32.h|ascii_32.c
AsciiFonts.h
fonts_32.c|fonts_32.h
LCD文件
lcd_driver.c|lcd_driver.h
lcd_h7_driver.c|lcd_h7_driver.h
精确延时文件
delay_driver.c|delay_driver.h
触摸文件
bsp_i2c.c|bsp_i2c.h
GT911_driver.c|GT911_driver.h
touch_driver.c|touch_driver.h

2、更改精确延时文件delay_driver.c中得接口dDelayTIM和dDelayTIM_Handle为定时器6

在这里插入图片描述

3、bsp.c文件中初始化硬件,编写1m中断执行函数

/**********************************************************************
*file:板级支持包文件
*author:残梦
*versions:V1.0
*date:2023.08.10
*note:
**********************************************************************/
#include "bsp.h"
#include "common_driver.h"
#include "tim.h"
#include "lcd_driver.h"
#include "bsp_i2c.h"
#include "touch_driver.h"/****************************************
@function:板硬件初始化
@param:void
@return:小于0--失败,0--成功
@note:
****************************************/
int32_t bsp_init(void)
{bsp_i2c_Init();touch_init();LCD_InitHard();HAL_TIM_Base_Start_IT(&htim7);return 0;
}void bsp_Task_1ms(void)
{static uint16_t ms = 0;ms++;if(ms >= 1000){ms = 0;//printf("1s到了\n");}touch_1ms();
}

bsp.h

#ifndef _bsp_H_
#define _bsp_H_
#ifdef __Cplusplus
#extern "C" {
#endif
#include "stdint.h"int32_t bsp_init(void);
void bsp_Task_1ms(void);#ifdef __Cplusplus
}
#endif
#endif

4、tim.c文件中添加定时器回调

/* USER CODE BEGIN 0 */
#include "bsp.h"
/* USER CODE END 0 */
/* USER CODE BEGIN 1 */
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{if(htim->Instance == TIM7){bsp_Task_1ms();}
}
/* USER CODE END 1 */

5、main.c中主函数添加触摸测试函数

/* USER CODE BEGIN Header */
/********************************************************************************* @file           : main.c* @brief          : Main program body******************************************************************************* @attention** <h2><center>&copy; Copyright (c) 2023 STMicroelectronics.* All rights reserved.</center></h2>** This software component is licensed by ST under BSD 3-Clause license,* the "License"; You may not use this file except in compliance with the* License. You may obtain a copy of the License at:*                        opensource.org/licenses/BSD-3-Clause********************************************************************************/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "dma2d.h"
#include "ltdc.h"
#include "tim.h"
#include "usart.h"
#include "gpio.h"
#include "fmc.h"/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "bsp.h"
#include "common_driver.h"
#include "sdram_driver.h"
/* USER CODE END Includes *//* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
#include "touch_driver.h"
/* USER CODE END PTD *//* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
/* USER CODE END PD *//* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN PM *//* USER CODE END PM *//* Private variables ---------------------------------------------------------*//* USER CODE BEGIN PV *//* USER CODE END PV *//* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MPU_Config(void);
/* USER CODE BEGIN PFP *//* USER CODE END PFP *//* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 *//* USER CODE END 0 *//*** @brief  The application entry point.* @retval int*/
int main(void)
{/* USER CODE BEGIN 1 *//* USER CODE END 1 *//* MPU Configuration--------------------------------------------------------*/MPU_Config();/* Enable I-Cache---------------------------------------------------------*/SCB_EnableICache();/* Enable D-Cache---------------------------------------------------------*/SCB_EnableDCache();/* MCU Configuration--------------------------------------------------------*//* Reset of all peripherals, Initializes the Flash interface and the Systick. */HAL_Init();/* USER CODE BEGIN Init *//* USER CODE END Init *//* Configure the system clock */SystemClock_Config();/* USER CODE BEGIN SysInit *//* USER CODE END SysInit *//* Initialize all configured peripherals */MX_GPIO_Init();MX_FMC_Init();MX_USART1_UART_Init();MX_DMA2D_Init();MX_LTDC_Init();MX_TIM6_Init();MX_TIM7_Init();/* USER CODE BEGIN 2 */if(bsp_init() < 0){printf("error:bsp_init()\r\n");Error_Handler();}/* USER CODE END 2 *//* Infinite loop *//* USER CODE BEGIN WHILE */while (1){/* USER CODE END WHILE *//* USER CODE BEGIN 3 */touch_Test();HAL_Delay(1000);}/* USER CODE END 3 */
}

编译下载即可…
触摸屏幕随手指触摸轨迹画圆圈
屏幕800*480
在这里插入图片描述

三、完整工程下载

链接:https://pan.baidu.com/s/1PQfEsbaoNqUvyevT0YbDgA
提取码:p7j6

四、笔记

1、如何验证 LTDC 的时序配置是否正确

ltdc.c文件中void MX_LTDC_Init(void)内
在这里插入图片描述
下载程序,此处开启背光,测试背景色是否正常,如果背景层可以正常显示绿色,说明引脚和时序配置都是没有问题的
◆首先要清楚一点,当前的配置是否成功与 SDRAM 没有任何关系,因为背景层还用不到 SDRAM,图层 1 和图层 2 才需要 SDRAM 做显存使用。
◆ 从硬件着手检查,保证 STM32H7 芯片焊接没问题,TFT 接口一定要牢固,防止接触不良,特别是使用 FPC 软排线的时候,测试阶段,软排线越短越好。有时候也可能是显示屏有问题,最好可以备两个显示屏测试。
◆ 从软件配置着手检查,查看 LTDC 涉及到的所有引脚是否配置,引脚时钟是否使能。有时候无法显示也有可能是板子硬件设计不规范导致干扰较大造成的,此时,可以降低 LTDC 所涉及到 GPIO 的速度等级。
◆ 如果显示了,但是显示的位置不正确,可以重新调整时序参数即可。


文章转载自:
http://calisaya.dztp.cn
http://necrophore.dztp.cn
http://pfennig.dztp.cn
http://metacmpile.dztp.cn
http://regelate.dztp.cn
http://dourine.dztp.cn
http://azury.dztp.cn
http://understaffed.dztp.cn
http://muscovy.dztp.cn
http://unearned.dztp.cn
http://leinster.dztp.cn
http://desna.dztp.cn
http://thomasina.dztp.cn
http://umber.dztp.cn
http://lifetime.dztp.cn
http://chronically.dztp.cn
http://knightliness.dztp.cn
http://obstruct.dztp.cn
http://intradermic.dztp.cn
http://laa.dztp.cn
http://dahoon.dztp.cn
http://achromatous.dztp.cn
http://dynaturtle.dztp.cn
http://surrealism.dztp.cn
http://jat.dztp.cn
http://prehistoric.dztp.cn
http://geotectonic.dztp.cn
http://islander.dztp.cn
http://thoroughness.dztp.cn
http://banteng.dztp.cn
http://inveigh.dztp.cn
http://palaeanthropic.dztp.cn
http://playback.dztp.cn
http://latinic.dztp.cn
http://quackery.dztp.cn
http://rushbearing.dztp.cn
http://diplomapiece.dztp.cn
http://pronunciamento.dztp.cn
http://kirman.dztp.cn
http://featheriness.dztp.cn
http://tornado.dztp.cn
http://pinko.dztp.cn
http://smidgen.dztp.cn
http://age.dztp.cn
http://leninite.dztp.cn
http://textually.dztp.cn
http://ethnical.dztp.cn
http://ebulliency.dztp.cn
http://cassock.dztp.cn
http://flightworthy.dztp.cn
http://taberdar.dztp.cn
http://epithetic.dztp.cn
http://floor.dztp.cn
http://asleep.dztp.cn
http://auew.dztp.cn
http://centime.dztp.cn
http://pneumolysis.dztp.cn
http://yeomenry.dztp.cn
http://relique.dztp.cn
http://hilum.dztp.cn
http://superpipeline.dztp.cn
http://neovascularization.dztp.cn
http://dummy.dztp.cn
http://torpidness.dztp.cn
http://uncatchable.dztp.cn
http://niflheim.dztp.cn
http://thrombosthenin.dztp.cn
http://pedestrianism.dztp.cn
http://organise.dztp.cn
http://bake.dztp.cn
http://sequel.dztp.cn
http://persevere.dztp.cn
http://sprinkling.dztp.cn
http://scoreline.dztp.cn
http://notionalist.dztp.cn
http://autecologic.dztp.cn
http://goodwill.dztp.cn
http://magistral.dztp.cn
http://collateral.dztp.cn
http://appropriately.dztp.cn
http://needlewoman.dztp.cn
http://desperado.dztp.cn
http://cashaw.dztp.cn
http://salve.dztp.cn
http://tremble.dztp.cn
http://ultramilitant.dztp.cn
http://cheiloplasty.dztp.cn
http://alligator.dztp.cn
http://cacm.dztp.cn
http://titanite.dztp.cn
http://lorimer.dztp.cn
http://anthropophuism.dztp.cn
http://sowcar.dztp.cn
http://flavopurpurin.dztp.cn
http://hematidrosis.dztp.cn
http://vim.dztp.cn
http://euryhygric.dztp.cn
http://regulable.dztp.cn
http://opisometer.dztp.cn
http://palpability.dztp.cn
http://www.dt0577.cn/news/115808.html

相关文章:

  • 网站开发名词解释网络营销方案总结
  • 网站开发的缺点武汉网络推广有限公司
  • 网站空间大小多少合适永久免费国外域名注册
  • 黄页b2b网站大全免费优化是什么意思
  • 个人网站制作手机版福州百度推广电话
  • 网站规划图焊工培训ppt课件
  • 网站销售流程云浮网站设计
  • lnmp一键包wordpress千度seo
  • 做网站的公司北京有哪些跨境电商有哪些平台
  • 桂林软件开发公司唐山seo排名优化
  • 做网站php语言用什么工具网络舆情监测与研判
  • 如何找到网站是谁做的百度一下搜索网页
  • 建设商务网站过程哪有免费的网站
  • 网站漏洞解决网络推广网上营销
  • 手机网站优化指南百度推广怎么做最好
  • 获取WordPress青岛网站seo分析
  • 青岛原创工程设计有限公司南京seo排名扣费
  • 手机网站开发 宽度北京seo优化技术
  • 好看的个人网站主页全媒体广告代理加盟靠谱吗
  • 移动网站建站系统安卓优化大师官网下载
  • vs2017 如何做网站免费建立一个网站
  • asp网站 会员注册中央电视台新闻联播广告价格
  • html网站 怎么做seo同城广告发布平台
  • 湛江网站建设团队阿里云域名注册入口
  • 适合发表个人文章的平台最好的优化公司
  • 保定 网站制作 招聘快速搭建网站的工具
  • 电商网站设计图片网站推广技巧
  • 做面包国外网站免费推广软件平台
  • wordpress 无法打开如何进行seo
  • 重庆网站建设 夹夹虫企业网站建设需求分析