Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Reply To: How use f_write in Fatfs library to save data

Home Forums MPLAB XC8 Tutorial Discussions How use f_write in Fatfs library to save data Reply To: How use f_write in Fatfs library to save data

#3112

Bitahwa Bindu
Keymaster

You can find out how many bytes are in the Float. The other best option so that your data can be readable is to convert it to string, use the function sprintf()  to convert Float to string then use The  f_printf  function writes formatted string to the file.