labplus-cn / mpython

mpython掌控板文档和固件源码
MIT License
129 stars 55 forks source link

bug in mpython MPythonPin class #6

Closed lgnativs closed 5 years ago

lgnativs commented 5 years ago

Describe the bug MPythonPin(1,PinMode.ANALOG) 设置P1引脚为模拟,程序死机

tangliufeng commented 5 years ago

MPythonPin(Pin)继承Pin类写法导致的,具体原因还不清楚。现已改为在类里实例ADC,PWM,对IO引脚的analog in 和PWM输出操作。