Updated to no longer use fwrite for reads, but can't use fread because it messes with the buffer being passed - need to use read instead to avoid buffer copying issues. Need to pass in address and length for reading. Updated test to show how to test.  Really it should use write instead of fwrite, as can be seen, needed to flush and even write 2x to get the correct address sent through to the EEPROM for some reason. Test now demonstrates how to write/readback
Merge branch 'master' of github.com:rchanrussell/drivers
Getting latest