Add note about reading the pin value when in OPEN_DRAIN mode

Daniel Campora 2015-11-02 10:14:56 +01:00
parent 9bb01f4d3f
commit 2b93a2eb30
1 changed files with 4 additions and 2 deletions

@ -131,12 +131,14 @@ def pin_handler(pin):
Do we really need 3 ways to set the value?
- `pin.init(...)` re init.
- `pin.value()` NOHEAP; get value (returns 1 or 0)
- `pin.value()` NOHEAP; get value (returns 1 or 0). See the note below.
- `pin.value(x)` NOHEAP; set value (value can be any valid Boolean expression)
- `pin()` NOHEAP; fast method to get the value of the pin.
- `pin()` NOHEAP; fast method to get the value of the pin. See the note below.
- `pin(value)` NOHEAP; fast method to set the value of the pin.
- `pin.toggle()` NOHEAP
**Note:** When the mode is `Pin.OPEN_DRAIN`, it must be possible to read the input value of the Pin.
**Getters and setters**
- `pin.id()` NOHEAP; get only. - need to clarify what this really returns. I'm assuming a board ID.
- `pin.mode([mode])` NOHEAP