Skip to content

Examples Aggregates

Luis Llamas edited this page Aug 26, 2019 · 4 revisions

Count/Sum/Min/Max/Average/RMS

#include "ReactiveArduinoLib.h"

void setup()
{
	Serial.begin(115200);
	while (!Serial) delay(1);

	Reactive::FromRange(10, 20, 2)
	.Max()  //same for Sum, Min, Max, Average or RMS
	.ToSerial();
}

void loop()
{
}
Clone this wiki locally