Update LEDBoard init docs

This commit is contained in:
Ben Nuttall
2015-10-25 22:05:17 +00:00
parent 766646f772
commit 010f1fd65c

View File

@@ -21,22 +21,12 @@ Ensure the `LEDBoard` class is imported at the top of the file:
from gpiozero import LEDBoard
```
Create an `LEDBoard` object by passing in a list of the LED pin numbers:
Create an `LEDBoard` object by passing in the LED pin numbers:
```python
leds = LEDBoard([2, 3, 4, 5, 6])
leds = LEDBoard(2, 3, 4, 5, 6)
```
#### Initialisation options
```python
LEDBoard(leds=None)
```
| Argument | Description | Values | Default |
| -------- | ----------- | ------ | ------- |
| `leds` | List of GPIO pins each LED is connected to, order preserved. | List | *Required* |
#### Methods
| Method | Description | Arguments |