$ echo out > /sys/class/gpio/gpio118/direction
$ echo 1 > /sys/class/gpio/gpio118/value
The GPIO will be set to a value of 1 (high at 3.3V).
3.16 Audio
The board provides two audio connectors for input and output. Line-in is on top and Headphones is on bottom
of the audio connector.
Note: The codec on the Haikou baseboard only supports a sample rate 48kHz . This restriction only applies to
this specific codec on the Haikou baseboard.
The I2S bus on the RINGNECK SOM-PX30-uQ7 module supports a sample rate up to 192kHz.
Additionally, an expansion connector for I2S audio is available on the bottom row of the board:
v1.3.1
Page 16
Fig. 3.14: Audio input/output port
3V3
GND
I2S_CLK
I2S_SDO
I2S_DAT
Fig. 3.15: Connecting to the audio expansion connector
3V3_LDO
I2S_RST#
I2S_WS
I2S_SDI
I2S_CLK