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...") |
(→DO LED Application) |
||
Line 19: | Line 19: | ||
=DO LED Application= | =DO LED Application= | ||
− | [[ | + | [[File:Fritzing drawing layout.jpg|300x210px|drawing digit out layout]] |
− | [[ | + | [[File:Fritzing_drawing_with_ARK-2151S.jpg|300x400px|ARK-2151S DO Layout]] |
==Test Script== | ==Test Script== |
Latest revision as of 10:20, 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
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