Add digital write and read