Author Topic: How to use an I/O expander  (Read 3400 times)

0 Members and 1 Guest are viewing this topic.

Offline HotKillerZzz

  • Thread Starter
  • Posts: 120
  • Location: Singapore
  • Ammesia
How to use an I/O expander
« on: Fri, 18 July 2014, 08:40:51 »
How do you use an  MCP23018 "I/O expander" to link between two custom made hardwired diy ergo keyboard?

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: How to use an I/O expander
« Reply #1 on: Fri, 18 July 2014, 08:42:14 »
Subscribing. I will need to do this for my hand wired dox and I have not researched it yet.

Offline trishume

  • Posts: 17
  • Location: Canada
    • My Website
Re: How to use an I/O expander
« Reply #2 on: Fri, 18 July 2014, 08:51:10 »

Offline HotKillerZzz

  • Thread Starter
  • Posts: 120
  • Location: Singapore
  • Ammesia
Re: How to use an I/O expander
« Reply #3 on: Fri, 18 July 2014, 10:01:34 »
Then how do you program the teensy to work tgt with it?

Offline bcg

  • Posts: 112
Re: How to use an I/O expander
« Reply #4 on: Fri, 18 July 2014, 23:05:19 »
Teensy is a ATmega 32u4 AVR, and can be programmed in C or using the Arduino IDE and libraries.  In either case you will need to write firmware to implement the IO logic, and then you can communicate with the IO expander using an I2C library.  Once your program compiles you load it onto the Teensy using their custom loader program (comes with the "Teensyduino" add on to the Arduino IDE) or via their command line loader (available from the PJRC website I believe).
:wq!