use os.write intead of wiringPiSPIRW