差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
wm_wiki:sound_sensor:manual [2020/02/20 17:07] juneral [1. 简要概述] |
wm_wiki:sound_sensor:manual [2020/05/12 14:31] (当前版本) juneral |
||
---|---|---|---|
行 217: | 行 217: | ||
padding:0cm 5.4pt 0cm 5.4pt;height:12.95pt'> | padding:0cm 5.4pt 0cm 5.4pt;height:12.95pt'> | ||
<p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><img | <p class=MsoNormal align=center style='text-align:center'><span lang=EN-US><img | ||
- | width=249 height=227 id="图片 1" src="https://www.weeemake.com.cn/wiki/lib/exe/fetch.php?media=wm_wiki:sound_sensor:pasted:20200220-164947.png"></span></p> | + | width=249 height=227 id="图片 1" src="lib/exe/fetch.php?media=wm_wiki:sound_sensor:pasted:20200220-164947.png"></span></p> |
</td> | </td> | ||
</tr> | </tr> | ||
行 240: | 行 240: | ||
</body></html> | </body></html> | ||
- | <sxh cpp; first-line: 1;highlight: [89,92]; title: sound_sensor_test.ino> | + | <sxh cpp; first-line: 1;highlight: [7,11]; title: sound_sensor_test.ino> |
#include<WeELF328P.h> | #include<WeELF328P.h> | ||
行 248: | 行 248: | ||
void setup(){ | void setup(){ | ||
- | pinMode(PORT_3, INPUT); | + | pinMode(PORT_3, INPUT); |
} | } | ||
void loop(){ | void loop(){ | ||
- | value = analogRead(PORT_3); | + | value = analogRead(PORT_3); |
- | seven_segment_A.showNumber(value); | + | seven_segment_A.showNumber(value); |
- | delay(100); | + | delay(100); |
} | } | ||
| |