这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 上一修订版 两侧同时换到之后的修订记录 | ||
icore3_micropython_3 [2020/06/15 16:53] zgf |
icore3_micropython_3 [2020/06/17 15:36] zgf |
||
---|---|---|---|
行 18: | 行 18: | ||
按键的一端与STM32的GPIO(PH15)相连,另一端接地,当按键按下时,PH15被短接到GND,呈低电平。示意图如下图所示: | 按键的一端与STM32的GPIO(PH15)相连,另一端接地,当按键按下时,PH15被短接到GND,呈低电平。示意图如下图所示: | ||
- | {{ :micropython_3_1.png?nolink&600 |硬件连接图}} | + | {{ :icore3:icore3_micropython_3_1.png?direct |硬件连接图}} |
==== 四、实验步骤 ==== | ==== 四、实验步骤 ==== | ||
行 30: | 行 30: | ||
<code python> | <code python> | ||
+ | # -*- coding: utf-8-*- | ||
# main.py -- put your code here! | # main.py -- put your code here! | ||
from pyb import Pin #导入引脚库 | from pyb import Pin #导入引脚库 |