在RaspberryPi中运行处理代码时,找不到用于处理的库。
我正在尝试使用处理4.0
来运行 Sketch
程序。该代码来自 freenove
raspberrypi
套件。
我遇到了这个错误。
No library found for processing.io
No library found for processing.io
No library found for processing.io
Libraries must be installed in a folder named 'libraries' inside the sketchbook folder (see the Preferences window).
The package “processing.io” does not exist. You might be missing a library.
代码是snippt,似乎包括 processing.io
is
/*****************************************************
* Filename : Sketch_09_1_1_Motor
* Description : Control speed and direction of the motor
* auther : www.freenove.com
* modification: 2016/08/22
*****************************************************/
import processing.io.*;
int motorPin1 = 17; //connect to the L293D
int motorPin2 = 27;
int enablePin = 22;
final int borderSize = 45; //border size
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
奇怪的,通常是处理臂,应该用。
如果安装方法下载页面并选择适合的Raspberry Pi CPU架构(32或64位)。
过去,我成功使用处理3 Raspberry Pi Image (已预装已安装的处理):如果您有备用microSD卡(或者不介意闪烁您现有的),则可能是备份计划。
即使是处理3,也希望您需要使用相同的
processing.io
功能。Strange, normally Processing ARM should ship with the processing.io library.
If the install method the Freenove manual provides (
curl https://processing.org/download/install-arm.sh | sudo sh
) doesn't work,I recommend trying the official Download page and selecting the Raspberry PI CPU architecture that fits (32 or 64 bit).
In the past I had success using the Processing 3 Raspberry PI Image (which has Processing preinstalled): this could be a backup plan if you have spare microSD card (or don't mind flashing over you're existing one).
Even though it's Processing 3, hopefully the same
processing.io
features you need will be available.