Changed write calls to gpio mmap