Skip to content

Commit

Permalink
examples/leds_shell: change application name
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-cabaj committed Jul 12, 2024
1 parent 9aea4bd commit 4273f97
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/LEDs/Makefile → examples/leds_shell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
####

# Set the name of your application:
APPLICATION = LEDs
APPLICATION = leds_shell

# If no BOARD is found in the environment, use this default:
BOARD ?= native
Expand Down
24 changes: 12 additions & 12 deletions examples/LEDs/README.md → examples/leds_shell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Description

This basic example allows easy, interactive control of internal board LEDs,
and basic GPIO for externally connected simple devices (for e.g. additional
LEDs, relay, motors - via dedicated drivers, etc.).
The application `leds_shell` is a basic example, which allows easy, interactive
control of internal board LEDs, and basic GPIO for externally connected simple
devices (for e.g. additional LEDs, relay, motors - via dedicated drivers, etc.).

In particular, this example shows:
- on/off and toggle internal board LEDs.
Expand Down Expand Up @@ -35,24 +35,24 @@ RIOT native interrupts/signals initialized.
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-LEDs)
LEDs, version 1.0.0
main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-leds_shell)
leds_shell, version 1.0.0
>
```

Or run it directly without terminal. Go to `RIOT/examples/LEDs` and run
Or run it directly without terminal. Go to `RIOT/examples/leds_shell` and run
commands:

```
$ make
[...]
$ ./bin/native/LEDs.elf
$ ./bin/native/leds_shell.elf
RIOT native interrupts/signals initialized.
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-LEDs)
LEDs, version 1.0.0
main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-leds_shell)
leds_shell, version 1.0.0
>
```

Expand Down Expand Up @@ -82,14 +82,14 @@ LED_GREEN_ON
```
## Example on sample board - stm32f469i-disco

- Build and flash `LEDs` example application on sample board, for example
- Build and flash `leds_shell` example application on sample board, for example
`stm32f469i-disco` target, which has 4 internal LEDs:

```
$ make BOARD=stm32f469i-disco flash term
[...]
main(): This is RIOT! (Version: 2021.07-devel-10894-g2ad22b9-example-LEDs)
LEDs, version 1.0.0
main(): This is RIOT! (Version: 2021.07-devel-10894-g2ad22b9-example-leds_shell)
leds_shell, version 1.0.0
> help
help
Command Description
Expand Down
2 changes: 1 addition & 1 deletion examples/LEDs/main.c → examples/leds_shell/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static const shell_command_t commands[] = {
int main(void)
{
char line_buf[SHELL_DEFAULT_BUFSIZE];
printf("LEDs, version 1.0.0\n");
printf("leds_shell, version 1.0.0\n");

shell_run(commands, line_buf, SHELL_DEFAULT_BUFSIZE);

Expand Down

0 comments on commit 4273f97

Please sign in to comment.