Skip to content

Commit 3e6ddd1

Browse files
aykevldeadprogram
authored andcommitted
machine: add PinOutputOpenDrain and PinDisable
These two are used on the Teensy boards (teensy36, teensy40, teensy41) and seem quite sensible to me, but weren't documented before. It is my goal to let the public API of the machine package match the documentation here, so that's why I'd like to add these two pin modes.
1 parent af25de2 commit 3e6ddd1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

content/docs/reference/machine.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ Boards have various pins defined as constants. For example, ATsamd21 based chips
2424
type PinMode uint8
2525

2626
const (
27-
PinOutput PinMode = ...
28-
PinInput PinMode = ...
29-
PinInputPullup PinMode = ...
30-
PinInputPulldown PinMode = ... // not always available
27+
PinOutput PinMode = ...
28+
PinInput PinMode = ...
29+
PinInputPullup PinMode = ...
30+
PinInputPulldown PinMode = ... // not always available
31+
PinOutputOpenDrain PinMode = ... // not always available
32+
PinDisable PinMode = ... // not always available
3133
)
3234
```
3335

0 commit comments

Comments
 (0)