GY-63_MS5611/libraries/DEVRANDOM/examples/DEVRANDOM_plotter/DEVRANDOM_plotter.ino

56 lines
774 B
Arduino
Raw Normal View History

2021-01-29 06:31:58 -05:00
//
// FILE: DEVRANDOM_demo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
// DATE: 2020-06-23
//
// USE WITH SERIAL PLOTTER
2021-12-15 13:48:19 -05:00
2021-01-29 06:31:58 -05:00
#include "DEVRANDOM.h"
DEVRANDOM dr;
2022-07-03 14:27:42 -04:00
volatile int a, b, c, d;
2021-01-29 06:31:58 -05:00
2021-12-15 13:48:19 -05:00
2021-01-29 06:31:58 -05:00
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.println();
2022-07-03 14:27:42 -04:00
Serial.println("SOFTWARE\tDIGITAL\tANALOG\tMARSAGLIA");
2021-01-29 06:31:58 -05:00
}
2021-12-15 13:48:19 -05:00
2021-01-29 06:31:58 -05:00
void loop()
{
2022-07-03 14:27:42 -04:00
dr.useRandom();
a = dr.read();
a = dr.read();
dr.useDigitalRead(4);
b = dr.read();
b = dr.read();
dr.useAnalogRead(A0);
c = dr.read();
c = dr.read();
dr.useMarsaglia();
d = dr.read();
d = dr.read();
Serial.print(a);
2021-01-29 06:31:58 -05:00
Serial.print("\t");
2022-07-03 14:27:42 -04:00
Serial.print(b);
2021-01-29 06:31:58 -05:00
Serial.print("\t");
2022-07-03 14:27:42 -04:00
Serial.print(c);
Serial.print("\t");
Serial.print(d);
2021-01-29 06:31:58 -05:00
Serial.println();
}
2021-12-15 13:48:19 -05:00
2021-01-29 06:31:58 -05:00
// -- END OF FILE --
2021-12-15 13:48:19 -05:00