Defines | Functions
D:/DRISSI/arduino-0022/arduino-0022/libraries/pcf8574/pcf8574.h File Reference

Controls leds and buttons using a port expander. More...

#include <WProgram.h>
#include <Wire.h>

Go to the source code of this file.

Defines

#define expander   B00100111
#define ON   1
#define OFF   0

Functions

void expanderWrite (unsigned char _data)
byte expanderRead ()
char Button1 ()
char Button2 ()
char Button3 ()
char Button4 ()
char Led1 (char state)
char Led2 (char state)
char Led3 (char state)
char Led4 (char state)
void ISR_Interrupt ()

Detailed Description

Controls leds and buttons using a port expander.

See also :
.cpp
The C++ File Reference.

Definition in file pcf8574.h.


Define Documentation

#define expander   B00100111

The actual adress for the pcf8574 B01001110 but because Arduino wire uses 7 bits, we take the lowest bit off and put it in the highest position. When this is done the last 3 bits are the address bits set using the jumpers on the board.

Definition at line 16 of file pcf8574.h.