1
- # Arduino-Indicator
1
+ # Arduino-Blinkenlight
2
2
3
- [ ![ tests] ( https://github.com/tfeldmann/Arduino-Indicator /actions/workflows/tests.yml/badge.svg )] ( https://github.com/tfeldmann/Arduino-Indicator /actions/workflows/tests.yml )
3
+ [ ![ tests] ( https://github.com/tfeldmann/Arduino-Blinkenlight /actions/workflows/tests.yml/badge.svg )] ( https://github.com/tfeldmann/Arduino-Blinkenlight /actions/workflows/tests.yml )
4
4
5
5
## 🚨 Supercharge your status-LEDs 🚨
6
6
7
7
> This library gives you non-blocking blinking patterns and smooth fade effects for your
8
8
> LEDs, buzzers or any other status indicators
9
9
10
+ <pre align =" center " >
11
+ <strong >Achtung Alles Lookenskeepers!</strong >
12
+ Das computermachine ist nicht fuer gefingerpoken und
13
+ mittengrabben. Ist easy schnappen der springenwerk,
14
+ blowenfusen und poppencorken mit spitzensparken. Ist nicht
15
+ fuer gewerken bei das dumpkopfen. Das rubbernecken
16
+ sichtseeren keepen das cotten-pickenen hans in das pockets
17
+ muss; <i >relaxen und watchen das blinkenlichten.</i >
18
+ </pre >
19
+
20
+ ## Why
21
+
22
+ I created this library because I like to blink my error codes to the user. So for
23
+ example blink two times for problems with component X, three times for component Y - you
24
+ get the idea.
25
+
10
26
## Features
11
27
12
28
- Basics: On / off / toggle
@@ -31,9 +47,9 @@ This example blinks the built-in LED on pin 13 in the following pattern:
31
47
- Repeat
32
48
33
49
``` C
34
- #include < FadeIndicator .h>
50
+ #include < Fadinglight .h>
35
51
36
- FadeIndicator led (13);
52
+ Fadinglight led (13);
37
53
38
54
void setup()
39
55
{
@@ -49,19 +65,19 @@ void loop()
49
65
Easy, uh? It's not only blinking, it does so with smooth fading effects and
50
66
logarithmic LED brightness compensation. Your boards never looked more professional! /s
51
67
52
- > Note: If you don't love the fading effects, just use the `Indicator `-class instead of
53
- > `FadeIndicator` .
68
+ > Note: If you don't love the fading effects, just use the `Blinkenlight `-class instead
69
+ > of `Fadinglight`. This sure does make your code more stylish .
54
70
55
71
## Full API
56
72
57
73
```C
58
74
// Without fading effect:
59
- #include <Indicator .h>
60
- Indicator myPin(13);
75
+ #include <Blinkenlight .h>
76
+ Blinkenlight myPin(13);
61
77
62
78
// With fading effect:
63
- #include <FadeIndicator .h>
64
- FadeIndicator myPin(13);
79
+ #include <Fadinglight .h>
80
+ Fadinglight myPin(13);
65
81
66
82
// now in your code you can do:
67
83
myPin.permanent(LOW);
@@ -126,24 +142,24 @@ void setSpeed(uint16_t on_ms);
126
142
myLed.settings.on_ms = 250;
127
143
myLed.settings.pause_ms = 2000;
128
144
129
- // ` true ` if the indicator is currently blinking, showing a pattern, flashing or pausing
145
+ // ` true ` if the Blinkenlight is currently blinking, showing a pattern, flashing or pausing
130
146
bool isOn();
131
147
132
148
// You must call this in your loop!
133
- // Returns the current value of the indiciator (LOW / HIGH).
149
+ // Returns the current value of the light (LOW / HIGH).
134
150
// - You can ignore that if you want.
135
151
int update();
136
152
```
137
153
138
- ## My status indicator is controlled via CAN / I2C / SPI / ... What can I do?
154
+ ## I have a status indicator controlled via CAN / I2C / SPI / ... What can I do?
139
155
140
156
No problem! You have two options.
141
157
142
- - Use the generic `BaseIndicator ` class from `<BaseIndicator .h>`. The `.update()`-method
158
+ - Use the generic `BaseBlinker ` class from `<BaseBlinker .h>`. The `.update()`-method
143
159
returns a boolean whether the status is currently `HIGH` or `LOW`. You can then send
144
- this value to your status indicator (see `examples/GenericBlink`).
145
- Use the `BaseFadeIndictor ` class if you want fading effects. Here the `update` method
160
+ this value to your status Blinkenlight (see `examples/GenericBlink`).
161
+ Use the `BaseFader ` class if you want fading effects. Here the `update` method
146
162
returns an integer `0..255`.
147
163
148
- - Subclass the `BaseIndicator ` class with custom logic. This is what `Indicator ` does
149
- internally (see `src/Indicator .h`). Have a look at the `SerialBlink` example!
164
+ - Subclass the `BaseBlinker ` class with custom logic. This is what `Blinkenlight ` does
165
+ internally (see `src/Blinkenlight .h`). Have a look at the `SerialBlink` example!
0 commit comments