Skip to content

Commit 02f76cc

Browse files
committed
update generic blink example
1 parent 6800200 commit 02f76cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/GenericBlink/GenericBlink.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This example shows how to use a generic indicator.
33
The `update()` method returns HIGH or LOW that you can use however you want.
44
5-
Of course this example would be easer with a `IndicatorPin` which handles the
5+
Of course this example would be easer with a `Indicator` which handles the
66
digital output automatically.
77
*/
88
#include <BaseIndicator.h>
@@ -17,5 +17,6 @@ void setup()
1717

1818
void loop()
1919
{
20-
digitalWrite(13, myIndicator.update());
20+
bool isOn = myIndicator.update();
21+
digitalWrite(13, isOn);
2122
}

0 commit comments

Comments
 (0)