Changes

Jump to navigation Jump to search
30 bytes added ,  06:55, 5 February 2017
Added Satellites category tag
Line 55: Line 55:  
mmcSelectSpi(spiPORT1, spiREG1);  // Initialize sdcard code to work on mibspi[1]
 
mmcSelectSpi(spiPORT1, spiREG1);  // Initialize sdcard code to work on mibspi[1]
   −
""Read from file""
+
'''Read from file'''
    
FIL file;
 
FIL file;
Line 63: Line 63:  
iFResult = f_read(&file, buffer, sizeof(buffer) - 1, (UINT *)&bytesRead);  // Read one block of data from the file.  bytesRead is populated with the number of bytes read.
 
iFResult = f_read(&file, buffer, sizeof(buffer) - 1, (UINT *)&bytesRead);  // Read one block of data from the file.  bytesRead is populated with the number of bytes read.
   −
""Write to file""
+
'''Write to file'''
    
FIL file;
 
FIL file;
Line 72: Line 72:     
res = f_close(&file); // If you don't do this the file might not save
 
res = f_close(&file); // If you don't do this the file might not save
 +
 +
[[Category: Satellites]]
767

edits

Navigation menu