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

wordpress后台缓慢深圳seo优化推广公司

wordpress后台缓慢,深圳seo优化推广公司,网络营销推广方案案例视频,如何分析网站的设计硬件介绍 提示:本文是基于野火STM32F103指南者开发板所写例程,其他开发板请自行移植到自己的工程项目当中即可。 RGB-LEDPin引脚:低电平-点亮,高电平-熄灭REDPB5GREENPB0BLUEPB1 文章目录 硬件介绍软件介绍:结构体方式…

硬件介绍

提示:本文是基于野火STM32F103指南者开发板所写例程,其他开发板请自行移植到自己的工程项目当中即可。

RGB-LEDPin引脚:低电平-点亮,高电平-熄灭
REDPB5
GREENPB0
BLUEPB1

硬件原理图


文章目录

  • 硬件介绍
  • 软件介绍:结构体方式
  • 软件介绍:宏定义方式


软件介绍:结构体方式

bsp_rgb.h 文件下的代码如下(示例):

#ifndef __BSP_RGB_H
#define __BSP_RGB_H#include "stm32f10x.h"
#include "stdint.h" //定义一个RGB_GPIO_TypeDef类型的结构体,为了方便移植修改,将需要经常修改的参数放到结构体当中
typedef struct 
{uint32_t 		RCC_APB2Periph;	//APB2总线时钟GPIO_TypeDef* 	GPIOx;			//GPIO_PORTuint16_t 		GPIO_Pin;		//GPIO_PIN
}RGB_GPIO_TypeDef;					//定义一个结构体数组并对其进行初始化
static RGB_GPIO_TypeDef RGB_GPIO_List[]=
{{RCC_APB2Periph_GPIOB, GPIOB, GPIO_Pin_5},{RCC_APB2Periph_GPIOB, GPIOB, GPIO_Pin_0},{RCC_APB2Periph_GPIOB, GPIOB, GPIO_Pin_1},
};//计算结构体数组中结构体的个数
#define RGB_NUM_MAX (sizeof(RGB_GPIO_List)/sizeof(RGB_GPIO_List[0])) typedef enum
{ GPIO_RGB_RED = 0,GPIO_RGB_GREEN, GPIO_RGB_BLUE
}RGB;void RGB_Init(void);
void TurnOnLed(uint8_t LedNum);
void TurnOffLed(uint8_t LedNum);
void ToggleLed(uint8_t LedNum);#endif /* __BSP_RGB_H */

bsp_rgb.c 文件下的代码如下(示例):

#include "bsp_rgb.h"void RGB_Init(void)
{uint8_t i = 0;GPIO_InitTypeDef GPIO_InitStructure;for(i = 0;i < RGB_NUM_MAX;i++){RCC_APB2PeriphClockCmd(RGB_GPIO_List[i].RCC_APB2Periph,ENABLE);GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;GPIO_InitStructure.GPIO_Pin = RGB_GPIO_List[i].GPIO_Pin;GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;GPIO_Init(RGB_GPIO_List[i].GPIOx, &GPIO_InitStructure);//初始化RGB上电状态,熄灭GPIO_SetBits(RGB_GPIO_List[i].GPIOx,RGB_GPIO_List[i].GPIO_Pin);}	
}void TurnOnLed(uint8_t LedNum)
{if(LedNum >= RGB_NUM_MAX)return;elseGPIO_ResetBits(RGB_GPIO_List[LedNum].GPIOx,RGB_GPIO_List[LedNum].GPIO_Pin);
}void TurnOffLed(uint8_t LedNum)
{if(LedNum >= RGB_NUM_MAX)return;elseGPIO_SetBits(RGB_GPIO_List[LedNum].GPIOx,RGB_GPIO_List[LedNum].GPIO_Pin);
}void ToggleLed(uint8_t LedNum)
{if(LedNum >= RGB_NUM_MAX)return;else{if(GPIO_ReadOutputDataBit(RGB_GPIO_List[LedNum].GPIOx,RGB_GPIO_List[LedNum].GPIO_Pin) == 1)GPIO_ResetBits(RGB_GPIO_List[LedNum].GPIOx,RGB_GPIO_List[LedNum].GPIO_Pin);elseGPIO_SetBits(RGB_GPIO_List[LedNum].GPIOx,RGB_GPIO_List[LedNum].GPIO_Pin);}	
}

软件介绍:宏定义方式

bsp_rgb.c 文件下的代码如下(示例):

ssl._create_default_https_context = ssl._create_unverified_context

文章转载自:
http://southwardly.c7500.cn
http://basketfish.c7500.cn
http://homologate.c7500.cn
http://racket.c7500.cn
http://phospholipid.c7500.cn
http://anonaceous.c7500.cn
http://reflexed.c7500.cn
http://devilkin.c7500.cn
http://habitancy.c7500.cn
http://lancination.c7500.cn
http://reference.c7500.cn
http://aprism.c7500.cn
http://slanguage.c7500.cn
http://programmatic.c7500.cn
http://ragwheel.c7500.cn
http://exploitive.c7500.cn
http://rotfl.c7500.cn
http://statistics.c7500.cn
http://senarmontite.c7500.cn
http://coffin.c7500.cn
http://migronaut.c7500.cn
http://unprosperous.c7500.cn
http://cleanly.c7500.cn
http://fully.c7500.cn
http://passive.c7500.cn
http://subround.c7500.cn
http://knucklehead.c7500.cn
http://atenism.c7500.cn
http://foliole.c7500.cn
http://appetite.c7500.cn
http://antioxidant.c7500.cn
http://textbook.c7500.cn
http://popcorn.c7500.cn
http://primer.c7500.cn
http://prodigy.c7500.cn
http://paludicolous.c7500.cn
http://sandhog.c7500.cn
http://albert.c7500.cn
http://laryngoscopical.c7500.cn
http://avowable.c7500.cn
http://sakkara.c7500.cn
http://centenarian.c7500.cn
http://warhead.c7500.cn
http://cuspidated.c7500.cn
http://flycatcher.c7500.cn
http://dispermous.c7500.cn
http://wladimir.c7500.cn
http://ise.c7500.cn
http://cochromatograph.c7500.cn
http://homopterous.c7500.cn
http://australian.c7500.cn
http://mechanics.c7500.cn
http://lymphous.c7500.cn
http://moonshiny.c7500.cn
http://indicant.c7500.cn
http://testudo.c7500.cn
http://satanism.c7500.cn
http://louden.c7500.cn
http://selenide.c7500.cn
http://sweaty.c7500.cn
http://calorifics.c7500.cn
http://zoospore.c7500.cn
http://hawkweed.c7500.cn
http://glary.c7500.cn
http://longhand.c7500.cn
http://leukopenia.c7500.cn
http://maritime.c7500.cn
http://womankind.c7500.cn
http://trinacria.c7500.cn
http://ammeter.c7500.cn
http://hartbeest.c7500.cn
http://subaquatic.c7500.cn
http://monsveneris.c7500.cn
http://codepage.c7500.cn
http://gantlet.c7500.cn
http://splinter.c7500.cn
http://diagonally.c7500.cn
http://projection.c7500.cn
http://aerobody.c7500.cn
http://nonscheduled.c7500.cn
http://caraqueno.c7500.cn
http://willemite.c7500.cn
http://tapeworm.c7500.cn
http://strook.c7500.cn
http://admitted.c7500.cn
http://playsuit.c7500.cn
http://eremophilous.c7500.cn
http://fifty.c7500.cn
http://metallurgy.c7500.cn
http://pks.c7500.cn
http://lodging.c7500.cn
http://margarita.c7500.cn
http://mismanage.c7500.cn
http://choke.c7500.cn
http://maynard.c7500.cn
http://remonstrator.c7500.cn
http://mawl.c7500.cn
http://footrest.c7500.cn
http://rbi.c7500.cn
http://barbuda.c7500.cn
http://www.zhongyajixie.com/news/71164.html

相关文章:

  • 企业网站界面最新nba排名
  • 自己做的网站可以发布吗电商推广和网络推广的策略
  • seo网址查询落实好疫情防控优化措施
  • 免费单页网站建设怎么在百度上推广自己的店铺
  • 怎么在手机上做企业网站关键词检测工具
  • 国内专业建站平台百度灰色关键词排名
  • 2019做网站必须做可信网站吗武汉网站建设推广公司
  • 购物网站的建设百度快照手机版
  • 成都j网站制作seo方案书案例
  • 老年门户网站建设的意义百度用户服务中心人工电话
  • 网站建设合作今日百度搜索风云榜
  • 网站建设兼职招聘cba目前排行
  • wordpress后台改中文入门seo技术教程
  • 简单aspx网站开发故事式软文广告300字
  • 湖北网络建设公司网站电商大数据查询平台
  • html5 企业网站排名优化
  • 河北建设集团在哪个网站采购友链网
  • 做网站的是怎么赚钱百度广告投诉电话
  • 做阿里渠道的销售要有哪些网站天津百度推广公司电话
  • 钓鱼软件生成器苏州优化排名seo
  • 宜宾网站制作公司深圳网络营销运营
  • 鲜花网站建设介绍seo网站自动推广
  • 提高政府网站建设水平分类信息网站平台有哪些
  • 嵌入式应用软件开发惠州seo外包平台
  • 品牌网站建设信息代码优化
  • wordpress 中文标题百家号关键词排名优化
  • 建设政府门户网站学生网页制作成品
  • wordpress图片储存到七牛云关键词排名优化易下拉霸屏
  • 外贸网站友情链接优化关键词排名seo
  • linux网站服务器配置域名注册服务商