public void handler(int offset, int data) {
            /*
             bit 0 = data
             bit 6 = clock
             bit 7 = cs
             */
            EEPROM_write_bit(data & 0x01);
            EEPROM_set_cs_line((data & 0x80) != 0 ? CLEAR_LINE : ASSERT_LINE);
            EEPROM_set_clock_line((data & 0x40) != 0 ? ASSERT_LINE : CLEAR_LINE);
        }