One wire pin to read and write is actually mocked up in this code, since accessing GPIO is actually not correct then how does it will work .   May be my view was wrong but the code does not seems to work. Is this code worked for anyone else