#!/usr/bin/python

from Adafruit_I2C import Adafruit_I2C
from MCP23017 import MCP23017

import time

# GPB6 0x23

mcp_r = MCP23017(address = 0x23, num_gpios = 16) # MCP23017
pin=14
rpin=1

mcp_r.pinMode(pin, mcp_r.OUTPUT)
mcp_r.pinMode(rpin, mcp_r.INPUT)

mcp_r.output(pin, 1)
time.sleep(2)
mcp_r.output(pin, 0)
