PLEASE NOTE: This article is obsolete or related to a discontinued product.

BEE Board Board and teh DAISY-22 I2C Expander

How to expand pinout using i2c bus

Multiple GPIO Expander can be driven simultaneously

A total of 8 I2C Expander can be used simultaneousl, for a total of 64 additional GPIO

Note: In this image Daisy Flat Cable is connected to W4 but you can also connect to W1

Library to mange Daisy-22 with BEE Board

This library is a simple way to expand pinout using DAISY-22.

  • Download and Install it by following this guide.
  • Plug Ribble Cable on Wings W1 or W4.
  • Configure DIP-Switch by following this page
  • open IDE and iclude Dasiy22 Library.

Write Single Pin

WriteSinglePin.pde

The function Daisy22::digitalWrite() accepts as a parameter the port number and the state to write

Write All Pins

WriteAllPins.pde

The function Daisy22::digitalWrite() accepts as a parameter 1Byte to write the all P0-P7 pins

Read Single Pin

ReadSinglePin.pde

The function Daisy22::digitalRead() accepts as a parameter the port number to read

Read All Pins

ReadAllPins.pde

The function Daisy22::digitalRead() returns a byte corresponding to the state of all pins

Related links