albsef Posted May 22, 2020 Share Posted May 22, 2020 Hi everyone, I am trying to set the pin 26 (PL08) on orange pi as Input but sometimes it is flashing. I did put a 10K external pull up resistor and it is exported as input pin. I did the same thing with the pin 22 (PD21) and this one is steady, no problems until now. I did not add anything on overlays for these pins. Any idea what I am doing wrong? Thanks Link to comment Share on other sites More sharing options...
MX_Master Posted May 23, 2020 Share Posted May 23, 2020 Pull up or pull down the pin using built-in 50k resistors. And compare the results. Link to comment Share on other sites More sharing options...
albsef Posted May 24, 2020 Author Share Posted May 24, 2020 On 5/23/2020 at 8:47 AM, MX_Master said: Pull up or pull down the pin using built-in 50k resistors. And compare the results. Is it possible to have an example of how I can do that with an overlay maybe? I tried with gpio mode *pin number* up and also down but it doesn't seem to work. I tried using sunxi-pio but no changes are made. Thank you Link to comment Share on other sites More sharing options...
MX_Master Posted May 25, 2020 Share Posted May 25, 2020 Try any gpio lib with pull up/down features included. For example: https://github.com/rm-hull/OPi.GPIO Pulling usage examples are here https://opi-gpio.readthedocs.io/en/latest/api-documentation.html Link to comment Share on other sites More sharing options...
Recommended Posts