Arduino Sketch MakerPlot Digital Data Examples
// MakerPlot Digital Data Examples
// This sketch is in the public domain
int x = 0; // values to plot
void setup() {
// configure hardware
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
void loop()
{
for (x = 0; x < 255; x++)
{
Serial.print("%["); // send to MakerPlot
Serial.print(x); // 8 bits of digital data
Serial.println(" ADC 8]"); //note space before ADC
delay(100); // delay 100 milliseconds before the next loop
}
}
// This sketch is in the public domain
int x = 0; // values to plot
void setup() {
// configure hardware
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
void loop()
{
for (x = 0; x < 255; x++)
{
Serial.print("%["); // send to MakerPlot
Serial.print(x); // 8 bits of digital data
Serial.println(" ADC 8]"); //note space before ADC
delay(100); // delay 100 milliseconds before the next loop
}
}