Adafruit AW9523 Library
|
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>
#include <Adafruit_I2CRegister.h>
Go to the source code of this file.
Classes | |
class | Adafruit_AW9523 |
Class that stores state and functions for interacting with the AW9523 I2C GPIO expander. More... | |
Macros | |
#define | AW9523_DEFAULT_ADDR 0x58 |
The default I2C address for our breakout. | |
#define | AW9523_LED_MODE 0x99 |
Special pinMode() macro for constant current. | |
#define | AW9523_REG_CHIPID 0x10 |
Register for hardcode chip ID. | |
#define | AW9523_REG_SOFTRESET 0x7F |
Register for soft resetting. | |
#define | AW9523_REG_INPUT0 0x00 |
Register for reading input values. | |
#define | AW9523_REG_OUTPUT0 0x02 |
Register for writing output values. | |
#define | AW9523_REG_CONFIG0 0x04 |
Register for configuring direction. | |
#define | AW9523_REG_INTENABLE0 0x06 |
Register for enabling interrupt. | |
#define | AW9523_REG_GCR 0x11 |
Register for general configuration. | |
#define | AW9523_REG_LEDMODE 0x12 |
Register for configuring const current. | |
I2C Driver for the Adafruit AW9523 GPIO expander
This is a library for the Adafruit AW9523 breakout: https://www.adafruit.com/products/4886
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
BSD license (see license.txt)