We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6800200 commit 02f76ccCopy full SHA for 02f76cc
examples/GenericBlink/GenericBlink.ino
@@ -2,7 +2,7 @@
2
This example shows how to use a generic indicator.
3
The `update()` method returns HIGH or LOW that you can use however you want.
4
5
-Of course this example would be easer with a `IndicatorPin` which handles the
+Of course this example would be easer with a `Indicator` which handles the
6
digital output automatically.
7
*/
8
#include <BaseIndicator.h>
@@ -17,5 +17,6 @@ void setup()
17
18
void loop()
19
{
20
- digitalWrite(13, myIndicator.update());
+ bool isOn = myIndicator.update();
21
+ digitalWrite(13, isOn);
22
}
0 commit comments