在RaspberryPi中运行处理代码时,找不到用于处理的库。

发布于 2025-01-29 14:04:32 字数 960 浏览 2 评论 0 原文

我正在尝试使用处理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 

I am trying to run a Sketch program using Processing 4.0. The code is from FreeNove raspberrypi kit.

I am getting this error

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.

The code is snippt which seem to include 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

硪扪都還晓 2025-02-05 14:04:32

奇怪的,通常是处理臂,应该用

如果安装方法下载页面并选择适合的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文