问题描述
创乐博K230_V3P0这个板子,很多东西都没有说明,多色LED的引脚,使用,按键int0也没有说明,,,官方文档的资料几乎都是01的资料,,关于这块V3P0的板子有详细的资料网址吗
问题:使用int0按键来控制led蓝灯亮灭,运行后,按下毫无反应,boot0按键可以正常使用
import time
import neopixel
from machine import FPIOA,Pin
pin = Pin(35)
num_leds = 1
pixel = neopixel.NeoPixel(pin, num_leds)
fpioa = FPIOA()
fpioa.set_function(64,FPIOA.GPIO64)
button_pin=Pin(64,Pin.IN,Pin.PULL_UP) #构建KEY对象
blue_color = (0, 0, 255)
while True:
if button_pin.value() == 0: # 按键被按下
pixel[0] = blue_color
pixel.write()
复现步骤
上电启动开发板
运行int0按键控制led代码
按下int0按键,毫无反应
硬件板卡
创乐博 CanMV-K230_V3P0
软件版本
CanMV_K230_V3P0_micropython_v1.5-legacy-27-g274b82f_nncase_v2.9.0