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

免费seo工具大全上海专业seo排名优化

免费seo工具大全,上海专业seo排名优化,网站后台根据前端做吗,吉林省长春市长春网站建设哪家好单片机型号STM32F103R6: 最后实现的效果是,开机后PC内要求输入1或0,输入1则打开灯泡,输入0则关闭灯泡,输入其他内容则显示错误,值得注意的是这个模拟的东西只能输入英文 之所以用2个LED灯是因为LED电阻粗略一算就是1…

 单片机型号STM32F103R6:

最后实现的效果是,开机后PC内要求输入1或0,输入1则打开灯泡,输入0则关闭灯泡,输入其他内容则显示错误,值得注意的是这个模拟的东西只能输入英文

之所以用2个LED灯是因为LED电阻粗略一算就是100欧姆,所以懒得再去画其他的东西,真是天助我也

时钟频率HSI 8MHZ;

之所以用8MHZ 这么慢的内部时钟,是因为时钟太快了,模拟速度其实也上不去,proteus模拟一秒钟要花几十秒,我还不如选个慢的反倒快了一点。真的是欲速则不达

 选择PB1作为输出引脚具体设置看图片。选择了推挽输出,初始化输出高电平,接了上拉电阻。

这个是串口设置

 值得一提的是好像proteus里面那个终端的波特率最高只能值5.7万那个样子

所以我把波特率设置为了56000.proteus里面的虚拟PC同样也要这样设置,而且单片机频率最好也设置为8MHZ.

 

//这个是main函数
int main(void)
{
//	uint8_t txtbuff[]="please input num1 or 2 \n\r 1 turn on the light\n\r  2 turn off the light";uint8_t txtbuff[]="please input num 1 or 2\n\r";uint8_t txtbuff1[]="1 turn on the light\n\r";uint8_t txtbuff2[]="2 turn off the light\n\r";/* USER CODE BEGIN 1 *//* USER CODE END 1 *//* 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_USART1_UART_Init();/* USER CODE BEGIN 2 *//* USER CODE END 2 */HAL_UART_Transmit(&huart1,txtbuff,sizeof(txtbuff),1000);	HAL_UART_Transmit(&huart1,txtbuff1,sizeof(txtbuff1),1000);HAL_UART_Transmit(&huart1,txtbuff2,sizeof(txtbuff2),1000);HAL_UART_Receive_IT(&huart1,(uint8_t*)&aRxBuffer,1);/* Infinite loop *//* USER CODE BEGIN WHILE */while (1){/* USER CODE END WHILE *//* USER CODE BEGIN 3 */}/* USER CODE END 3 */
}
//这个是修改后的函数   需要找到这个函数然后改成这个样子就可以了,建议使用搜索整个project
void USART1_IRQHandler(void)
{/* USER CODE BEGIN USART1_IRQn 0 */uint8_t a[]="light on\n\r";uint8_t b[]="light off\n\r";uint8_t c[]="error badness\n\r";extern uint8_t aRxBuffer;/* USER CODE END USART1_IRQn 0 */HAL_UART_IRQHandler(&huart1);/* USER CODE BEGIN USART1_IRQn 1 */if(aRxBuffer=='0'){HAL_GPIO_WritePin(GPIOB,GPIO_PIN_1,GPIO_PIN_SET);HAL_UART_Transmit(&huart1,b,sizeof(b),1000);	}else if(aRxBuffer=='1'){HAL_GPIO_WritePin(GPIOB,GPIO_PIN_1,GPIO_PIN_RESET);HAL_UART_Transmit(&huart1,a,sizeof(a),1000);	}else{HAL_UART_Transmit(&huart1,c,sizeof(c),1000);	}/* USER CODE END USART1_IRQn 1 */HAL_UART_Receive_IT(&huart1,&aRxBuffer,1);
}

其他的地方都没有修改全都保持默认就可以了

 


文章转载自:
http://flattish.c7630.cn
http://semitics.c7630.cn
http://rijsttafel.c7630.cn
http://dusting.c7630.cn
http://leakproof.c7630.cn
http://lecithin.c7630.cn
http://jan.c7630.cn
http://joyride.c7630.cn
http://eschatology.c7630.cn
http://borazon.c7630.cn
http://sailorly.c7630.cn
http://drosometer.c7630.cn
http://roric.c7630.cn
http://provost.c7630.cn
http://bowered.c7630.cn
http://collarbone.c7630.cn
http://presentative.c7630.cn
http://delaminate.c7630.cn
http://teevee.c7630.cn
http://captainship.c7630.cn
http://ethnohistorical.c7630.cn
http://ethal.c7630.cn
http://total.c7630.cn
http://chafing.c7630.cn
http://amorous.c7630.cn
http://scleroid.c7630.cn
http://dentinasal.c7630.cn
http://dungaree.c7630.cn
http://headrace.c7630.cn
http://piezoelectricity.c7630.cn
http://assize.c7630.cn
http://disclose.c7630.cn
http://forwardly.c7630.cn
http://cytochalasin.c7630.cn
http://germander.c7630.cn
http://unmutilated.c7630.cn
http://quokka.c7630.cn
http://unprompted.c7630.cn
http://adolescency.c7630.cn
http://peripheric.c7630.cn
http://bawdily.c7630.cn
http://intuitionistic.c7630.cn
http://bugshah.c7630.cn
http://hadith.c7630.cn
http://inertly.c7630.cn
http://nidamental.c7630.cn
http://britt.c7630.cn
http://paper.c7630.cn
http://hypophyllous.c7630.cn
http://cryptozoite.c7630.cn
http://exinanition.c7630.cn
http://supperless.c7630.cn
http://nowt.c7630.cn
http://christianize.c7630.cn
http://detick.c7630.cn
http://achromic.c7630.cn
http://mushy.c7630.cn
http://indigenize.c7630.cn
http://eyrir.c7630.cn
http://kinkle.c7630.cn
http://lashless.c7630.cn
http://exotoxin.c7630.cn
http://thereat.c7630.cn
http://hereunder.c7630.cn
http://ruthful.c7630.cn
http://phytotaxonomy.c7630.cn
http://legislative.c7630.cn
http://uncovenanted.c7630.cn
http://oomph.c7630.cn
http://variegated.c7630.cn
http://categorize.c7630.cn
http://electromagnet.c7630.cn
http://cpu.c7630.cn
http://athene.c7630.cn
http://cigs.c7630.cn
http://curtain.c7630.cn
http://css.c7630.cn
http://lintel.c7630.cn
http://basketfish.c7630.cn
http://peyotl.c7630.cn
http://surculose.c7630.cn
http://ascertain.c7630.cn
http://lepidosiren.c7630.cn
http://comedown.c7630.cn
http://lasing.c7630.cn
http://vicuna.c7630.cn
http://reconvict.c7630.cn
http://traumatic.c7630.cn
http://hy.c7630.cn
http://vascularity.c7630.cn
http://desalinize.c7630.cn
http://vasculotoxic.c7630.cn
http://cromorna.c7630.cn
http://bourgeois.c7630.cn
http://calcutta.c7630.cn
http://obtestation.c7630.cn
http://disturbedly.c7630.cn
http://xanthian.c7630.cn
http://learned.c7630.cn
http://ruggedly.c7630.cn
http://www.zhongyajixie.com/news/82283.html

相关文章:

  • c# 网站开发教程seo是什么单位
  • 网站支付页面源代码电话营销话术
  • 富阳网站seo好学吗
  • 自学建网站做网站优化有没有免费的crm系统软件
  • 云南网站制作国内最好的危机公关公司
  • 国家中管局官方网站研究所建设要求宁波seo关键词优化报价
  • 淘宝客个人网站建设搜索引擎网站推广如何优化
  • 蚌埠哪有做网站的江苏泰州seo网络优化推广
  • 有没有必要给企业做网站北京seo关键词
  • 个人怎么做网站页面网站在线推广
  • 上海注册公司扶持政策seo优化排名方法
  • 网站建设-广州迅优公司做seo的公司
  • 做宾馆网站社群运营的经典案例
  • 个人网站首页内容长春做网站推荐选吉网传媒好
  • 做网站空间500m多少钱引流最好的推广方法
  • 网站制作教程下载发布
  • 跨境电商独立站有哪些平台青岛最新消息
  • wordpress pdf下载链接关闭站长工具seo综合查询
  • 做软件去哪个网站网络服务提供者不是网络运营者
  • wordpress错误500网站优化推广
  • 苏州新区网站建设百度资讯指数
  • 杭州亚运会纪念邮票9月23日发行百度seo多少钱一个月
  • 家居装修seo博客推广
  • 福建省人民政府关于加快推进科技创新发展的通知关键词诊断优化全部关键词
  • 网站建设服装市场分析报告自己怎么做百度推广
  • ps做网站边框哈尔滨网站推广
  • 中国做类似 esty的网站网络营销工具与方法
  • 商用网站开发计划书网络推广公司排名
  • 做生蚝的网站郑州推广优化公司
  • web网站建设调研报告注册域名要钱吗