Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 17d2ed7

Browse files
authored
Merge pull request #6 from nerves-project/spelling
Various minor spelling fixes
2 parents b81f27f + 879d108 commit 17d2ed7

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Nerves.IO.Led
22
==============
33
[![Build Status](https://travis-ci.org/nerves-project/nerves_io_led.svg?branch=master)](https://travis-ci.org/nerves-project/nerves_io_led)
44

5-
Simple control of Led. Designed for use with [nerves](http://nerves.io/), but works on any distribution of linux that supports `/sys/class/leds`.
5+
Simple control of LEDs. Designed for use with [nerves](http://nerves-project.org/), but works on any distribution of Linux that supports `/sys/class/leds`.
66

77
## Configuration
88

@@ -56,18 +56,18 @@ This will illuminate the LED for 2 seconds, after which it will extinguish. By
5656

5757
## Customizing LED states
5858

59-
The standard LED states are defined as `@predefined_states` near the top of `lib/nerves_io_Led.ex`. You can change or add to them using config.exs as follows:
59+
The standard LED states are defined as `@predefined_states` near the top of `lib/nerves_io_led.ex`. You can change or add to them using config.exs as follows:
6060
```elixir
6161
config :nerves_io_led, :state, [
6262
fastblink: [ trigger: "timer", delay_off: 40, delay_on: 30 ],
6363
blip: [ trigger: "timer", delay_off: 1000, delay_on: 100 ]
6464
]
6565
```
66-
See the linux documentation on `sys/class/leds` to understand the meaning of trigger, delay, brightness, and other settings.
66+
See the Linux documentation on `sys/class/leds` to understand the meaning of trigger, delay, brightness, and other settings.
6767

6868

6969
## Limitations, Areas for Improvement
7070

71-
- linux only, requires `/sys/class/leds`
72-
- most but not all ``/sys/class/leds` features are currently implemented
71+
- Linux only, requires `/sys/class/leds`
72+
- most but not all `/sys/class/leds` features are currently implemented
7373
- tests don't cover keepalive functionality yet

lib/nerves_io_led.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ defmodule Nerves.IO.Led do
3333
end
3434

3535
# if the value of a defined LED is a function, then call the function
36-
# with the key/value arguments Primarly used for testing
36+
# with the key/value arguments Primarily used for testing
3737
defp write(led_fn, {key, value}) when is_function(led_fn) do
3838
led_fn.({key, value})
3939
end
@@ -72,11 +72,11 @@ defmodule Nerves.IO.Led do
7272
7373
Written in such a way that you can call alive from multiple processes,
7474
and they will overlap - i.e. each call resets the timer to another time
75-
period. If the specified timeout is different, the last timout called
75+
period. If the specified timeout is different, the last timeout called
7676
is the timeout that is used. When the timeout expires (with no other
7777
alive call for that led) the led is extinguished.
7878
79-
The following example shows turning on an led labelled :activity. The
79+
The following example shows turning on an led labeled :activity. The
8080
call must be executed every 2 seconds or more to keep the activity led
8181
lit:
8282

0 commit comments

Comments
 (0)