Arduino Sketch MakerPlot Analog Data Examples
// MakerPlot Analog Data Examples
// This sketch is in the public domain
int x = 0; // values to plot
int y = 250;
int z = 500;
void setup() {
// configure hardware
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
void loop()
{
for (x = 0; x < 250; x++)
{
Serial.print(x); // send x to MakerPlot
Serial.print(",");
Serial.print(y-x);
Serial.print(",");
Serial.println(z -(2*x));
delay(50); // delay 50 milliseconds before the next loop
}
// This sketch is in the public domain
int x = 0; // values to plot
int y = 250;
int z = 500;
void setup() {
// configure hardware
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
void loop()
{
for (x = 0; x < 250; x++)
{
Serial.print(x); // send x to MakerPlot
Serial.print(",");
Serial.print(y-x);
Serial.print(",");
Serial.println(z -(2*x));
delay(50); // delay 50 milliseconds before the next loop
}