-
Notifications
You must be signed in to change notification settings - Fork 8
Examples Aggregates
Luis Llamas edited this page Aug 24, 2019
·
4 revisions
#include "ReactiveArduinoLib.h"
auto observableInt = FromProperty<int>();
void setup()
{
Serial.begin(9600);
while (!Serial) delay(1);
observableInt
>> Max<int>() //same for Sum, Min, Max, Average or RMS
>> ToSerial<int>();
}
void loop()
{
delay(1000);
observableInt = 1;
delay(1000);
observableInt = 2;
delay(1000);
observableInt = 2;
delay(1000);
observableInt = 3;
}