GPIO issues
-
I have a Omega2 connected to a PowerDock2 and I am using this as a DIY Irrigation Controller for my Home. So far I got GPIO 0,2 and 3 working but I am having issues getting one more GPIO pin to work. I thought I could get GPIO 1 going but from reading a few places my best bet is to use GPIO 6 that is also the SPI_CS1 pin. I ran omega2-ctrl set spi_cs1 gpio and then issued gpioctl dirout-low 6. I then issue gpioctl get 6 and it says it LOW but it is still HIGH.
So am I missing something here?
-
@Bone-Saw Have a look at the docs in the section "Multiplexed Pins" GPIO1 is by default assigned as i2s so you can run the command:
omega2-ctrl gpiomux set i2s gpio
This will set it to the pin to GPIO so you could then use it as a GPIO.
Personally I would just use a GPIO that is not multiplexed instead.
-
@crispyoz said in GPIO issues:
Personally I would just use a GPIO that is not multiplexed instead.
Every accessible Omega2 "GPIO pin" has got also other function(s)
so practically Omega2 does not have any non multiplexed "GPIO pin".
-
@Bone-Saw said in GPIO issues:
I ran omega2-ctrl set spi_cs1 gpio ...
I hope you ran
omega2-ctrl gpiomux set spi_cs1 gpio
instead of the above command.