我有一个python程序,我想在后台运行(在Raspberry Pi上)等待GPIO输入然后执行操作并继续等待输入,直到进程被终止.
实现这一目标的最有效方法是什么.我的理解是,使用while true并不是那么有效.理想情况下它会使用中断 - 我可以使用GPIO.wait_for_edge - 但这需要在某个循环中或在处理程序完成后继续操作的方式.
谢谢
npm start在React项目上执行命令时,出现以下错误。
Failed to compile.
Error in ./~/react-scroll-pagination/dist/index.js
Module not found: [CaseSensitivePathsPlugin] `C:\Users\timhu\Dev\MongoDbStitch\PlateSpace\Web\node_modules\React\react.js` does not match the corresponding path on disk `react`.
@ ./~/react-scroll-pagination/dist/index.js 3:27-43
Error in ./~/react-scroll-pagination/dist/index.js
Module not found: [CaseSensitivePathsPlugin] `C:\Users\timhu\Dev\MongoDbStitch\PlateSpace\Web\node_modules\jQuery\dist\jquery.js` does not match the corresponding path on disk `jquery`.
@ ./~/react-scroll-pagination/dist/index.js 3:45-62
Run Code Online (Sandbox Code Playgroud)
我是新来的人-但是从我可以看出这是一个路径问题,npm install即将模块添加到node_modules文件夹中,所有模块都使用小写的文件夹名称,但是编译器解析为使用大小写混合的文件夹名称。
我该如何解决?该代码来自MongoDb Stitch PlateSpace教程项目
我要更新现有代码(也许是import语句),还是npm或react问题?
谢谢蒂姆