当前位置:网站首页>自制蓝牙手机app控制stm8/stm32/C51板载LED
自制蓝牙手机app控制stm8/stm32/C51板载LED
2022-08-04 02:20:00 【挨踢玩家】
这里来分享下,自制手机app来控制单片机上的LED,以实现上位机,下位机的通讯
这次分享的是蓝牙app控制stm8,stm32,C51的我前面的文章分享过,不懂的可以看看–>传送门
原理很简单,就是蓝牙手机app发送字符1(亮),字符2(灭)
蓝牙app的制作看我上面的传送门,这里一点都没更改
这里的代码是基于stm8s串口通讯改的代码,如果没有代码的话可以看我上一篇文章–>传送门
其实这些都很简单的,看我下面的代码就明白了
还有什么比这个更简单的吗?没有了吧
我们点击手机上的前进后退(这是之前蓝牙小车做的app,我懒得改了)
前进—发送字符 1
后退—发送字符 2
所以就会点亮LED,看下图吧
还没点击按钮之前
点击按钮后
串口助手都是有信息的
**
这样就实现了蓝牙控制stm8的操作啦,是不是很简单
**
边栏推荐
- 5.scrapy中间件&分布式爬虫
- 浏览器存储
- Simple sorting (summer vacation daily question 14)
- What is the source of flinkcdc consuming mysql binlog data without sqltype=delete
- Zabbix set up email alert + enterprise WeChat alert
- Slipper - virtual point, shortest path
- flask框架初学-06-对数据库的增删改查
- C程序编译和预定义详解
- halcon自定义函数基本操作
- 持续投入商品研发,叮咚买菜赢在了供应链投入上
猜你喜欢
Continuing to pour money into commodities research and development, the ding-dong buy vegetables in win into the supply chain
Web APIs BOM- 操作浏览器:swiper 插件
JS 从零教你手写节流throttle
一个注解替换synchronized关键字:分布式场景下实现方法加锁
实例035:设置输出颜色
pytorch applied to MNIST handwritten font recognition
云开发旅游打卡广场微信小程序源码(含视频教程)
什么是SVN(Subversion)?
There are n steps in total, and you can go up to 1 or 2 steps each time. How many ways are there?
出海季,互联网出海锦囊之本地化
随机推荐
In a more general sense, calculating the displacement distance and assumptions
Small Turtle Compilation Notes
Example 040: Reverse List
在更一般意义上验算移位距离和假设
sql有关问题,小时粒度,找到前一个小时内的数据
html select tag assignment database query result
pytorch applied to MNIST handwritten font recognition
Dong mingzhu live cold face away, when employees frequency low-level mistakes, no one can understand their products
Intranet penetration - application
MySQL高级-读写分离-分库分表
Flask Framework Beginner-06-Add, Delete, Modify and Check the Database
Utilities of Ruineng Micrometer Chip RN2026
[Original] Start the XPS/OXPS reader that comes with Windows 10
2022.8.3-----leetcode.899
C program compilation and predefined detailed explanation
Priority_queue element as a pointer, the overloaded operators
MallBook 助力SKT思珂特教育集团,立足变化,拥抱敏捷交易
2022年茶艺师(中级)考试试题模拟考试平台操作
第13章 网络安全漏洞防护技术原理与应用
Download install and create/run project for HBuilderX