11-05-2020, 01:31 PM
My hardware configuration has an optocoupler connected to GPIO 22, which goes LOW when put in reverse (to display camera).
As OAP requires active HIGH by default, I've found a command to change this GPIO to active low which works great.
Problem: As this needs to be executed every boot, how can I run this automatically on startup? The suggested file at /home/pi/.config/lxsession/LXDE-pi/autostart does not exist for me (OAP11 on 3B+)
My folder structure only has a LXDE folder within /home/pi/.config/lxsession/.
Please help.
As OAP requires active HIGH by default, I've found a command to change this GPIO to active low which works great.
echo 1 > /sys/class/gpio/gpio18/active_low
Problem: As this needs to be executed every boot, how can I run this automatically on startup? The suggested file at /home/pi/.config/lxsession/LXDE-pi/autostart does not exist for me (OAP11 on 3B+)
My folder structure only has a LXDE folder within /home/pi/.config/lxsession/.
Please help.