我可以在 Arduino 绘图仪上绘制 y = x 公式吗?
Can I plot a y = x formula on the Arduino plotter?
是否可以在 Arduino 的串行绘图仪上绘制简单的数学函数?
只是y = x + b的标准格式?我知道您可以将感官输入绘制到绘图仪上,但我不确定如何在串行绘图仪上绘制 y = x + b。现在我有以下内容:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int x;
int LineFormula = x + 10;
x + 5;
delay(10);
}
如果这不可能,是否还有其他选项可供我使用?我需要使用 Arduino 作为输入,但我想看一个小图表。
您需要通过串行接口实际发送一个值。
Serial.println(LineFormula);
您的代码仅从 x
计算 LineFormula
。
您还忘记了用值初始化 x
!
是否可以在 Arduino 的串行绘图仪上绘制简单的数学函数? 只是y = x + b的标准格式?我知道您可以将感官输入绘制到绘图仪上,但我不确定如何在串行绘图仪上绘制 y = x + b。现在我有以下内容:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int x;
int LineFormula = x + 10;
x + 5;
delay(10);
}
如果这不可能,是否还有其他选项可供我使用?我需要使用 Arduino 作为输入,但我想看一个小图表。
您需要通过串行接口实际发送一个值。
Serial.println(LineFormula);
您的代码仅从 x
计算 LineFormula
。
您还忘记了用值初始化 x
!