# 对于R7FA8D1BHgpio口的输出，我实在看不出哪里出了问题，我看了pin函数的定义，参数也看不出问题，也查过官方文档，但是它显示错误：AttributeError: no such attribute

**URL:** <https://forums.openmv.io/t/r7fa8d1bhgpio-pin-attributeerror-no-such-attribute/11101>\
**Category:** Chinese 中文\
**Created:** [June 7, 2025, 3:44pm UTC](https://forums.openmv.io/t/r7fa8d1bhgpio-pin-attributeerror-no-such-attribute/11101 "2025-06-07T15:44:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MNMRINEOO](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@MNMRINEOO](https://forums.openmv.io/u/MNMRINEOO)\
**Post date:** [June 7, 2025, 3:44pm UTC](https://forums.openmv.io/t/r7fa8d1bhgpio-pin-attributeerror-no-such-attribute/11101/1 "2025-06-07T15:44:30Z")

</div>

import machine  
from machine import Pin  
import time

# 初始化 GPIO

pin = machine.Pin(“GPIO\_5”,Pin.OUT)

# 设置 GPIO 为高电平

pin.high()

# 保持高电平 1 秒

time.sleep(1)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [June 9, 2025, 4:55pm UTC](https://forums.openmv.io/t/r7fa8d1bhgpio-pin-attributeerror-no-such-attribute/11101/2 "2025-06-09T16:55:07Z")

</div>

Hi, the R7FA8D1BH is not our product.
