# Tuya IoTOS Embedded Mcu Demo Wifi Ble Electronic Compass
[English](./README.md) | [中文](./README_zh.md)
## Introduction
This Demo uses the Tuya smart cloud platform, Tuya smart APP, and IoTOS Embedded MCU SDK to realize a air pressure detector.
The implemented features include:
+ orientation check
## Quick start
### Migration
+ [Get MCU SDK](https://developer.tuya.com/en/docs/iot/device-development/embedded-software-development/mcu-development-access/mcu-access-guide?id=K9hrbv1ub5owo#title-2-产品创建)
+ [MCU SDK Migration](https://developer.tuya.com/en/docs/iot/device-development/embedded-software-development/mcu-development-access/wifi-mcu-sdk-solution/overview-of-migrating-tuyas-mcu-sdk?id=K9hhi0xr5vll9)
### File introduction
```
├── user
│ ├── main.c
│ └── MY_ST_config.h
├── CMSIS
│ ├── system_stm32g0xx.c
│ └── startup_stm32g071xx.s
├── SYS
│ ├── sys.c
│ ├── sys.h
│ ├── RCC.c
│ ├── RCC.h
│ ├── delay.c
│ ├── delay.h
│ ├── USART.c
│ ├── USART.h
│ ├── IO.c
│ ├── IO.h
│ ├── TIM.c
│ └── TIM.h
└── MCU_SDK
├── mcu_api.c
├── mcu_api.h
├── protocol.c
├── protocol.h
├── system.c
├── system.h
└── wifi.h
```
### Demo entry
Entry file:main.c
Important functions:main()
+ Initialize and configure MCU IO port, USART, timer, etc. All events are polled and judged in while(1)。
### DataPoint related
+ DP point processing: mcu_dp_value_update()
| function name | unsigned char mcu_dp_value_update(unsigned char dpid,unsigned long value) |
| ------------- | ------------------------------------------------------------ |
| dpid | DP ID number |
| value | DP data |
| Return | SUCCESS: Success ERROR: Failure |
### I/O List
| QMC5883L | UASRT1 |
| :----------: | :-----: |
| PB11 IIC_SDA | PC4 TXD |
| PB12 IIC_SCL | PC5 RXD |
## Related Documents
Tuya Demo Center: https://developer.tuya.com/demo/
## Technical Support
You can get support for Tuya by using the following methods:
- Developer Centre: https://developer.tuya.com/
- Help Centre: https://support.tuya.com/help
- Technical Support Work Order Centre: [https://service.console.tuya.com](https://service.console.tuya.com/)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
QMC5883L 地磁计电子罗盘驱动程序,获取方位角 (127个子文件)
test.uvguix.Administrator 178KB
mcu_api.c 34KB
protocol.c 32KB
system.c 26KB
system_stm32g0xx.c 10KB
IO.c 5KB
USART.c 2KB
delay.c 1KB
TIM.c 713B
RCC.c 560B
sys.c 364B
main.c 172B
io.crf 353KB
tim.crf 347KB
sys.crf 346KB
usart.crf 335KB
protocol.crf 335KB
delay.crf 334KB
rcc.crf 334KB
main.crf 334KB
mcu_api.crf 18KB
system.crf 17KB
mini-st.css 56KB
sys.d 1KB
io.d 1KB
tim.d 1KB
protocol.d 945B
usart.d 920B
main.d 872B
delay.d 858B
rcc.d 850B
mcu_api.d 330B
system.d 322B
system_stm32g0xx.d 172B
startup_stm32g071xx.d 103B
test_Target 1.dep 12KB
stm32g081xx.h 702KB
stm32g071xx.h 681KB
stm32g041xx.h 604KB
stm32g031xx.h 583KB
stm32g070xx.h 563KB
stm32g030xx.h 542KB
core_cm33.h 169KB
core_armv8mml.h 162KB
core_cm7.h 142KB
core_cm4.h 119KB
core_cm3.h 107KB
core_sc300.h 106KB
core_cm23.h 100KB
core_armv8mbl.h 94KB
cmsis_gcc.h 59KB
cmsis_armclang.h 53KB
core_cm0plus.h 48KB
core_sc000.h 45KB
core_cm1.h 41KB
core_cm0.h 40KB
cmsis_iccarm.h 27KB
protocol.h 27KB
cmsis_armcc.h 27KB
mcu_api.h 14KB
mpu_armv7.h 11KB
mpu_armv8.h 10KB
system.h 10KB
cmsis_compiler.h 9KB
wifi.h 6KB
stm32g0xx.h 5KB
IO.h 4KB
tz_context.h 3KB
system_stm32g0xx.h 2KB
cmsis_version.h 2KB
USART.h 250B
delay.h 192B
MY_ST_config.h 179B
TIM.h 122B
sys.h 118B
RCC.h 101B
test.build_log.htm 2KB
stm32g031xx_flash.icf 1KB
stm32g070xx_flash.icf 1KB
stm32g071xx_flash.icf 1KB
stm32g081xx_flash.icf 1KB
stm32g041xx_flash.icf 1KB
stm32g030xx_flash.icf 1KB
stm32g071xx_sram.icf 1KB
stm32g041xx_sram.icf 1KB
stm32g031xx_sram.icf 1KB
stm32g070xx_sram.icf 1KB
stm32g030xx_sram.icf 1KB
stm32g081xx_sram.icf 1KB
startup_stm32g071xx.lst 38KB
VERSION.md 5KB
README.md 3KB
README_zh.md 2KB
io.o 400KB
tim.o 380KB
sys.o 376KB
usart.o 371KB
protocol.o 369KB
delay.o 365KB
main.o 362KB
共 127 条
- 1
- 2
资源评论
知人者智A
- 粉丝: 0
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功