Difference between revisions of "IDP/ARK-2151S/Test GPIO"
From ESS-WIKI
(Created page with " 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 0...") |
(No difference)
|
Revision as of 10:17, 17 February 2016
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