Skip to content

Commit 43d0fa8

Browse files
author
Maarten Pennings
committed
0.2.10
- Fixed typos (including I/O-expander).
1 parent a4f2126 commit 43d0fa8

3 files changed

Lines changed: 19 additions & 16 deletions

File tree

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=OSP ReusableApps aoapps
2-
version=0.2.9
2+
version=0.2.10
33
author=ams-OSRAM
44
maintainer=ams-OSRAM
55
sentence=A library with reusable "apps" for OSP chains.

readme.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ This library contains several modules, see figure below (arrows indicate `#inclu
9494
It is the app manager. It implements a register of apps in the
9595
sketch. It implements functions to start, step and stop an app. These
9696
are called from the main loop, and forwarded to the running app.
97-
In practive, the `step()` function is constantly called from the main loop
97+
In practice, the `step()` function is constantly called from the main loop
9898
and manages the animation implemented by the app.
9999

100-
This module also implements a command (to be registered with `aocmd_cint` if
101-
so desired). This handler allows the user see which apps are included, which
102-
is running, and it allows to switch the running app.
100+
This module also implements a command (to be registered with `aocmd_cint`
101+
if so desired). This handler allows the user to see which apps are
102+
available, which is running, and it allows to switch the running app.
103103

104104
- **aoapps_runled** (`aoapps_runled.cpp` and `aoapps_runled.h`) is one of the stock apps.
105105
- There is a "virtual cursor" that runs from the begin of the chain to the end and then back.
@@ -113,9 +113,9 @@ This library contains several modules, see figure below (arrows indicate `#inclu
113113
- **aoapps_swflag** (`aoapps_swflag.cpp` and `aoapps_swflag.h`) is one of the stock apps.
114114
- Shows one (static) flag at a time, eg the Dutch national flag red/white/blue spread over the OSP chain.
115115
- Tries to find a SAID with an I2C bridge with an I/O-expander (with four buttons and four indicator LEDs).
116-
- If there is no I/O expander, shows four static flags switching on a time basis.
116+
- If there is no I/O-expander, shows four static flags switching on a time basis.
117117
- If there are multiple I/O-expanders the first one is taken.
118-
- When an I/O expander is found the four buttons select which flag to show.
118+
- When an I/O-expander is found the four buttons select which flag to show.
119119
- The indicator LEDs connected to the I/O-expander indicate which button/flag was selected.
120120
- The X and Y buttons control the dim level (RGB brightness).
121121
- This app adds a command to configure which four flags will be shown.
@@ -213,7 +213,7 @@ so desired). This handler allows the user manage apps.
213213
### aoapps_swflag
214214

215215
- `aoapps_swflag_register()` registers the swflag app with the app manager.
216-
- `aoresult_t aoapps_swflag_resethw()` resets the I/O expander, thereby
216+
- `aoresult_t aoapps_swflag_resethw()` resets the I/O-expander, thereby
217217
switching off the indicator LEDs attached to it. This helps reset the PCB
218218
state when the MCU is reset.
219219

@@ -283,9 +283,9 @@ This module also implements a command `apps` (to be registered with
283283
- switch to a different app
284284
- configure an app
285285

286-
If an individual app has something to configure, its shall pass its configuration
287-
handler (just another command handler) during its registration with the
288-
app manager. As an example see the registration of the `swflag` app:
286+
If an individual app has something to configure, its shall pass its
287+
configuration handler (just another command handler) during its registration
288+
with the app manager. As an example see the registration of the `swflag` app:
289289

290290
```cpp
291291
// The registration function for app swflag.
@@ -302,7 +302,7 @@ help string `aoapps_swflag_cmd_help` and a configuration command function
302302
`aoapps_swflag_cmd_main`.
303303

304304
The command handlers that configure and app are not top-level commands,
305-
rather they are subcommands of the `apps config` command.
305+
rather they are sub-commands of the `apps config` command.
306306

307307
When running `apps config` a list is shown of configurable apps.
308308
The help string for an app is shown when the user executes the
@@ -321,9 +321,9 @@ SYNTAX: apps config swflag set <flag1> <flag2> <flag3> <flag4>
321321
- configures four flags (from list)
322322
```
323323
324-
We see that the `swflag` app has three config commands: `list` shows
325-
which flags are available, `get` shows which four flags are configured
326-
and `set` configures four flags.
324+
We see that the `swflag` app has three configuration commands: `list` shows
325+
which flags are available, `get` shows which four flags are configured (that
326+
is, associated with the four buttons) and `set` configures four flags.
327327
328328
Typically, the wanted four flags would be set with `file record` in
329329
the `boot.cmd` which is executed at startup, for example:
@@ -349,6 +349,9 @@ of the OSP chain, without app telegrams interfering.
349349
350350
## Version history _aoapps_
351351
352+
- **2024 November 29, 0.2.10**
353+
- Fixed typos (including I/O-expander).
354+
352355
- **2024 October 8, 0.2.9**
353356
- Fixed parsing problems Doxygen.
354357
- Prefixed `modules.drawio.png` with library short name.

src/aoapps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
// Identifies lib version
26-
#define AOAPPS_VERSION "0.2.9"
26+
#define AOAPPS_VERSION "0.2.10"
2727

2828

2929
// Include the (headers of the) modules of this app

0 commit comments

Comments
 (0)