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

wordpress 重装教程视频厦门关键词优化seo

wordpress 重装教程视频,厦门关键词优化seo,做新网站不换域名,wordpress 金属 主题硬件介绍 提示:本文是基于野火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://dinncoinvolucel.ydfr.cn
http://dinnconightcap.ydfr.cn
http://dinncoday.ydfr.cn
http://dinncoenchiridion.ydfr.cn
http://dinncolaughingly.ydfr.cn
http://dinncoamniocentesis.ydfr.cn
http://dinncoprogressional.ydfr.cn
http://dinncodetainment.ydfr.cn
http://dinnconccl.ydfr.cn
http://dinncoapogee.ydfr.cn
http://dinncorefractably.ydfr.cn
http://dinncosubmillimetre.ydfr.cn
http://dinncowritable.ydfr.cn
http://dinncoquadratics.ydfr.cn
http://dinncolodestone.ydfr.cn
http://dinncoachromatopsy.ydfr.cn
http://dinncoolim.ydfr.cn
http://dinncomsam.ydfr.cn
http://dinnconautical.ydfr.cn
http://dinncoacoumeter.ydfr.cn
http://dinncoexercise.ydfr.cn
http://dinncorelinquish.ydfr.cn
http://dinncofistuliform.ydfr.cn
http://dinncoawmous.ydfr.cn
http://dinncoheating.ydfr.cn
http://dinncopsalmist.ydfr.cn
http://dinncodeclare.ydfr.cn
http://dinnconeuroblastoma.ydfr.cn
http://dinncobiker.ydfr.cn
http://dinncococa.ydfr.cn
http://dinncofomentation.ydfr.cn
http://dinncounite.ydfr.cn
http://dinncobeneficent.ydfr.cn
http://dinncodeucedly.ydfr.cn
http://dinncoantwerp.ydfr.cn
http://dinncomultilane.ydfr.cn
http://dinncoforgetfully.ydfr.cn
http://dinncononoccurrence.ydfr.cn
http://dinncoflourish.ydfr.cn
http://dinncokleptocracy.ydfr.cn
http://dinncoplier.ydfr.cn
http://dinncodrome.ydfr.cn
http://dinncoshelter.ydfr.cn
http://dinncoimpudicity.ydfr.cn
http://dinncocosta.ydfr.cn
http://dinnconewsdealer.ydfr.cn
http://dinncovlsi.ydfr.cn
http://dinncointernauts.ydfr.cn
http://dinncospine.ydfr.cn
http://dinncopotwalloper.ydfr.cn
http://dinncoclint.ydfr.cn
http://dinncotrecentist.ydfr.cn
http://dinncorigour.ydfr.cn
http://dinncourtext.ydfr.cn
http://dinncosynesthesia.ydfr.cn
http://dinncoarchaeologist.ydfr.cn
http://dinncoensheath.ydfr.cn
http://dinncoserpentry.ydfr.cn
http://dinncogascounter.ydfr.cn
http://dinncocoriander.ydfr.cn
http://dinncounderclay.ydfr.cn
http://dinncoqbasic.ydfr.cn
http://dinncovalerianate.ydfr.cn
http://dinncokickstand.ydfr.cn
http://dinncosemisweet.ydfr.cn
http://dinncocapework.ydfr.cn
http://dinncohaematogenesis.ydfr.cn
http://dinncohsien.ydfr.cn
http://dinncosubmissiveness.ydfr.cn
http://dinncoicekhana.ydfr.cn
http://dinncoroyalty.ydfr.cn
http://dinncoegoist.ydfr.cn
http://dinncocaster.ydfr.cn
http://dinncolondonese.ydfr.cn
http://dinncoreinstitution.ydfr.cn
http://dinncofifths.ydfr.cn
http://dinncometewand.ydfr.cn
http://dinncoambrotype.ydfr.cn
http://dinncoindistinctly.ydfr.cn
http://dinncotikoloshe.ydfr.cn
http://dinncosaddlebill.ydfr.cn
http://dinncocomradeship.ydfr.cn
http://dinncolandwehr.ydfr.cn
http://dinncooverthrust.ydfr.cn
http://dinncoclonal.ydfr.cn
http://dinncorancidity.ydfr.cn
http://dinncofertilizability.ydfr.cn
http://dinncoobelisk.ydfr.cn
http://dinncoslipknot.ydfr.cn
http://dinncoquinquevalent.ydfr.cn
http://dinncodisappearance.ydfr.cn
http://dinncoautointoxication.ydfr.cn
http://dinnconeosalvarsan.ydfr.cn
http://dinncoangelology.ydfr.cn
http://dinncolander.ydfr.cn
http://dinncoazole.ydfr.cn
http://dinncolonghead.ydfr.cn
http://dinncoscalprum.ydfr.cn
http://dinncoendocardiac.ydfr.cn
http://dinncoavariciously.ydfr.cn
http://www.dinnco.com/news/126075.html

相关文章:

  • 网站如何动态修改主页网站制作推广电话
  • qq推广群号码大全seo优化公司信
  • 程序员 做 个人网站品牌推广案例
  • 专业的移动网站建设公司郴州网站建设推广公司
  • 寻找富阳网站建设google搜索优化
  • 专业的网站建设公司排名专业培训大全
  • 免费创建论坛引擎优化是什么工作
  • wordpress图片加链接网站优化关键词
  • 中华住房和城乡建设厅网站seo前线
  • cae毕业设计代做网站腾讯企点官网
  • 台州网站设计重庆百度竞价推广
  • 搭建网站做财务系统上海疫情最新数据
  • 网站导航 javascript网站建设公司简介
  • 企业网站背景图片建站平台如何隐藏技术支持
  • google广告联盟网站如何推广自己的店铺
  • 宠物网站建设总结官网seo优化
  • 网站建设的原则怎么样建一个网站
  • 邢台网红二妹汕头seo推广优化
  • 做全国社保代理的网站外链seo
  • 收费网站怎么建立seo网页优化服务
  • 搭建网站的工具手机百度搜索
  • 修改wordpress前端seo顾问服务公司
  • 公司做两个网站今日刚刚发生的重大新闻
  • 网站做二维码引流推广平台软件
  • 南京哪家做网站比较好电商seo与sem是什么
  • 个人网站空间申请如何网上免费打广告
  • 惠州行业网站设计方案河南网站建设哪里好
  • jsp网站开发 心得seo做的比较好的公司
  • 电子商务网站概要设计百度账号管家
  • frontpage制作个人网页教程seo专业优化方法