GPIO: always use pull-up for logic input (#27321)
This commit is contained in:
parent
26d6464334
commit
e30fa4ba99
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ func NewGpioPluginFromConfig(ctx context.Context, other map[string]any) (Plugin,
|
|||
switch cc.Function {
|
||||
case GpioTypeRead:
|
||||
p.pin.Input()
|
||||
p.pin.PullUp()
|
||||
case GpioTypeWrite:
|
||||
p.pin.Output()
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue