Skip to content

Commit

Permalink
Update docs to use classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
samwedge committed Feb 4, 2021
1 parent c8bd164 commit e38b8ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ to the component. Let's look at an example with an LED:

```python
from rapiduino.components.led import LED
led = LED(arduino, 13)
led = LED.create(arduino, 13)
```

This creates an LED object and registers it to the arduino against pin 13. When binding, the code automatically
Expand All @@ -65,4 +65,3 @@ led.toggle()

You don't need to think of pin states or pin modes when interacting with your components, and you don't need to keep
track of which pin is connected to which component - rapiduino will do that for you.

0 comments on commit e38b8ce

Please sign in to comment.