【发布时间】:2018-04-07 01:10:34
【问题描述】:
我在 Linux 上使用名为 Arduino Makefile 的命令行界面包。我在 Arduino Uno 上设置了一个传感器,将温度和湿度数据打印到 LCD 上。
我已经搜索了可能的解决方案,例如Save to CSV file from Arduino,其代码在不同的网站和论坛上重复出现,例如researchgate。
我尝试使用他们的代码。但是,代码行:
import processing.serial.*;
给我错误:
thermo.ino:3:1: error: ‘import’ does not name a type
import processing.serial.*;
^
如何解决这个错误?或者有没有其他方法可以将传感器数据保存到我计算机中存储的文件中?
顺便说一下,我的电脑是用USB线直接连接到Arduino Uno的。
【问题讨论】:
-
处理与 Arduino 不同。