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
Hi, I had the problem that the
initialargument defined insetupfunction does not take effect. Below is what I did.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