56 lines
774 B
Arduino
Raw Normal View History

2021-01-29 12:31:58 +01:00
//
// FILE: DEVRANDOM_demo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
// DATE: 2020-06-23
//
// USE WITH SERIAL PLOTTER
2021-12-15 19:48:19 +01:00
2021-01-29 12:31:58 +01:00
#include "DEVRANDOM.h"
DEVRANDOM dr;
2022-07-03 20:27:42 +02:00
volatile int a, b, c, d;
2021-01-29 12:31:58 +01:00
2021-12-15 19:48:19 +01:00
2021-01-29 12:31:58 +01:00
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.println();
2022-07-03 20:27:42 +02:00
Serial.println("SOFTWARE\tDIGITAL\tANALOG\tMARSAGLIA");
2021-01-29 12:31:58 +01:00
}
2021-12-15 19:48:19 +01:00
2021-01-29 12:31:58 +01:00
void loop()
{
2022-07-03 20:27:42 +02: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 12:31:58 +01:00
Serial.print("\t");
2022-07-03 20:27:42 +02:00
Serial.print(b);
2021-01-29 12:31:58 +01:00
Serial.print("\t");
2022-07-03 20:27:42 +02:00
Serial.print(c);
Serial.print("\t");
Serial.print(d);
2021-01-29 12:31:58 +01:00
Serial.println();
}
2021-12-15 19:48:19 +01:00
2021-01-29 12:31:58 +01:00
// -- END OF FILE --
2021-12-15 19:48:19 +01:00