IDP/ARK-2151S/Test GPIO
From ESS-WIKI
PIN 0-5 DI PIN 6-7 DO PIN 8-9 GND
DI i2cget -y 7 0x27 0x00 All off 0xff => 11111111 0: on 0x7f => 01111111 1: on 0xbf => 10111111 DO 0x06 => 110
i2cset -y 7 0x27 0x06 0x00 i2cset -y 7 0x27 0x06 0xff
DO LED Application
300x210px|drawing digit out layout 300x400px|ARK-2151S DO Layout
Test Script
#!/bin/bash modprobe i2c-dev echo "Blink LED on DO. Press [CTRL+C] to stop." while : do i2cset -y 7 0x27 0x06 0x00 sleep 0.5 i2cset -y 7 0x27 0x06 0xff sleep 0.5 done