-
Notifications
You must be signed in to change notification settings - Fork 8
Examples Observables
Luis Llamas edited this page Apr 25, 2019
·
13 revisions
#include "ReactiveArduinoLib.h"
void setup()
{
Serial.begin(9600);
while (!Serial) delay(1);
Reactive::FromRange<int>(1, 10, 2)
>> Reactive::ToSerial<int>();
}
void loop()
{
}#include "ReactiveArduinoLib.h"
auto observableRange = Reactive::FromRangeDefer<int>(1, 5, 1);
void setup()
{
Serial.begin(9600);
while (!Serial) delay(1);
observableRange
>> Reactive::ToSerial<int>();
}
void loop()
{
observableRange.Next();
delay(1000);
}