• Home
Name Date Size #Lines LOC

..--

BUILD.gnD12-May-2024789 2320

README_zh.mdD12-May-2024887 2719

adc_temperature.cD12-May-20243.2 KiB10075

adc_temperature.hD12-May-2024883 288

adc_temperature_use_example.cD12-May-20241.4 KiB5532

README_zh.md

1# Niobe407开发板OpenHarmony外设编程开发——ADC
2本示例将演示如何在Niobe407开发板上通过ADC采集CPU温度
3
4
5## 编译调试
6- 进入//kernel/liteos_m目录, 在menuconfig配置中进入如下选项:
7
8     `(Top) → Platform → Board Selection → select board niobe407 → use talkweb niobe407 application → niobe407 application choose`
9
10- 选择 `101_peripheral_adc_temperature`
11
12- 回到sdk根目录,执行`hb build -f`脚本进行编译。
13
14### 运行结果
15
16示例代码编译烧录代码后,按下开发板的RESET按键,通过串口助手查看日志
17```
18The IC current temperature is 24.25
19The IC current temperature is 22.96
20The IC current temperature is 22.64
21The IC current temperature is 23.29
22The IC current temperature is 23.29
23The IC current temperature is 23.61
24The IC current temperature is 23.61
25The IC current temperature is 22.96
26```
27