Initializing port direction
Don M
Posts: 1,653
I am curious if there is another way of doing this.
In my code I set the direction of a pin (RST) to output and then set it high as the default state:
but then I get this small glitch when the Prop powers up:
which the display interprets as a reset. In my code I have a method for reseting:
If I comment out the "dira" and "outa" command at the beginning of my code then the reset method does not work.
Is there another way to make this work?
Thanks.
In my code I set the direction of a pin (RST) to output and then set it high as the default state:
PUB Demo ser.Start(RX, TX, 0, 9_600) ' communicate with 4D display term.start(31, 30, %0000, 115_200) ' start terminal using PST dira[RST]~~ ' Set RST pin as output outa[RST]~~
but then I get this small glitch when the Prop powers up:
which the display interprets as a reset. In my code I have a method for reseting:
PUB Reset outa[RST]~ pause(2) outa[RST]~~
If I comment out the "dira" and "outa" command at the beginning of my code then the reset method does not work.
Is there another way to make this work?
Thanks.
Comments
Bean