OK, now this is all cool. However I am trying to use GPIO for relay switch control. It turns out that:|
Does anyone know how to make a pin start in output mode and in low state?
- Every pin will initialize in open-drain mode, which is understandable and protects agains any unpredictable power surges
- I can set a pin on output mode but this action will immediately set pin to high state
- Only after that I can set pin to low state.
Or maybe there is some supported by board register-based way to set pull-down or pull-up on pins.