Skip to content

The initial arguments defined in setup function does not take effect #49

@vava24680

Description

@vava24680

Hi, I had the problem that the initial argument defined in setup function does not take effect. Below is what I did.

from RPi import GPIO

GPIO.setmode(GPIO.BCM)
GPIO.setup(22, GPIO.OUT, initial=GPIO.LOW) # It does not set the initial value to low.

I ran this code under the newest version of this package and the platform is Raspberry Pi 4B+.

No matter I passed low or high, it always set the same initial value. Can somebody help me or point out what's going on?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions