按照官方的例子出错了,请大家帮助一下


(lzwomen) #1

好长时间不用了,按照官方的例子出错了,请大家帮助一下
日志如下:
Button pushed.
Button released.
Error: TypeError: Writing GPIO ‘value’: Bad file descriptor [module: gpio errno 9 ]
at [anon] (/data/ruff/forJenkins/workspace/native-modules-embedded/sys-gpio/src/duk_gpio.c:193) internal
at [anon] () native strict preventsyield
at [anon] (~runtime~/build/rt5350/sys-gpio/packages/sys-gpio/src/index.js:302) strict
at [anon] (ruff_modules\led-gpio\src\index.js:41) strict
at [anon] (src/index.js:16) preventsyield
at call () native strict preventsyield
at emitNone (~embedded~/events:65) strict
at emit (~embedded~/events:159) strict
at [anon] (ruff_modules\button-gpio\src\index.js:47) strict preventsyield
at call () native strict preventsyield
at emitOne (~embedded~/events:77) strict
[…]
at [anon] (/data/ruff/forJenkins/workspace/ruff-embedded/src/ruff.c:282) internal
at [anon] () native strict preventsyield