New GPIO script for testing
Switched from fopen/fwrite/fread to open/write/read, seems with the stdc++ lib reads were being buffered?