nanoI2CSlaveExpander
ARDUINO Nano v3 used as I2C slace digital and analog io expander for ESP8266 and others...
config.h File Reference

nanoI2CIOexpander porject configuration file More...

Go to the source code of this file.

Macros

#define MA_VERSION   2
 project version not file version More...
 
#define MI_VERSION   1
 Minor version. More...
 
#define MAXREG   32
 Maximum number of register. More...
 
#define I2CADD   0x58
 I2C base address to be completed by D12..D10 pin states. More...
 
#define I2CLOWADD   13
 
#define ARDUINO_TYPE   "NANO"
 Only for debug display. More...
 

Detailed Description

nanoI2CIOexpander porject configuration file

Author
J.SORANZO
Date
03/12/2018
Version
git versionning

Definition in file config.h.

Macro Definition Documentation

◆ ARDUINO_TYPE

#define ARDUINO_TYPE   "NANO"

Only for debug display.

Definition at line 80 of file config.h.

◆ I2CADD

#define I2CADD   0x58

I2C base address to be completed by D12..D10 pin states.

This number is ored with D12..D10 state to obtain full I2C address

Warning D12 to D10 are internaly pulluped

Definition at line 69 of file config.h.

◆ I2CLOWADD

#define I2CLOWADD   13

Definition at line 73 of file config.h.

◆ MA_VERSION

#define MA_VERSION   2

project version not file version

This version is manualy udated

The major part of version number

Definition at line 20 of file config.h.

◆ MAXREG

#define MAXREG   32

Maximum number of register.

  • 0x00 : Major version (RO)
  • 0x01 : R/W test reg 1
  • 0x02 : R/W test reg 2
  • 0x03 : 0x55 (RO)
  • 0x04 : DDR (R/W) 1 for output, default 0
  • 0x05 : digital DATA (R/W) a write on input bit has no effect
  • 0x06 : Minor version (RO)
  • 0x07 : pullup reg (R/W) : 1 pullup is enable, default = 0 v2 change
  • 0x08 : DDR2
  • 0x09 : DATA2
  • 0x0A : PULLUP2
  • 0x0B to 0x0F : reserved (read data 0xA5)
  • 0x10, 0x11 : A0 low, high (RO)
  • 0x12, 0x13 : A1 low, high (RO)
  • 0x14, 0x15 : A2 low, high (RO)
  • 0x16, 0x17 : A3 low, high (RO)
  • 0x18, 0x19 : 0xCA low, 0xFE high (RO)
  • 0x1A, 0x1B : 0xFE low, 0xCA high (RO)
  • 0x1C, 0x1D : A6 low, high (RO)
  • 0x1E, 0x1F : A7 low, high (RO)

RO : Read Only R/W : Read and Write enabled registers

v2 change Writable registers are : 1,2,4,5 and 7 8, 9 and A

Definition at line 56 of file config.h.

◆ MI_VERSION

#define MI_VERSION   1

Minor version.

The minor Part of the version

Definition at line 21 of file config.h.