sipeed / MaixPy-v1_scripts

micropython scripts for MaixPy
https://maixpy.sipeed.com
MIT License
628 stars 432 forks source link

NameError: name 'fm' isn't defined #43

Closed wolfbomb closed 4 years ago

wolfbomb commented 4 years ago

trying to run this code

from Maix import GPIO fm.register(board_info.LED_B, fm.fpioa.GPIO0) led_r=GPIO(GPIO.GPIO0,GPIO.OUT) led_r.value(0)

But it am getting this error. Any help will be highly appreciated. Thanks in advance. I am using MaixGo.

Traceback (most recent call last): File "", line 2, in NameError: name 'fm' isn't defined MicroPython v0.5.0-38-g4c4d5b6 on 2020-04-10; Sipeed_M1 with kendryte-k210

Neutree commented 4 years ago

from fpioa_manager import fm