DIP Switch Connection to I2C EEPROM
Either use pull-up resistors and use the DIP switches to pull down to ground, or use pull-down resistors and use the DIP switches to pull up to Vcc.







simulate this circuit &ndash; Schematic created using CircuitLab

If you do not pull (up|down) the address lines will be floating when the switch is open, which means arbitrary addresses will be in effect due to noise on the open, typically high-impedance address sense lines.