cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

Hello community,

   

I am trying to store my measured data to a sd card. I am using PSoC 5lp. For the storage purposes I checked the emfile example project. It is working, but there they do it this way:

   

.....

   

FS_Write(pFile, "0123456789", 10u)

   

So they write 0123456789 into a file. It is working, but how do I manage to store variables. I want to store measured data and currently I have no idea how to do it.

   

Thanks in advance for helpful comments.

   

Alex

0 Likes
Reply
3 Replies
Honored Contributor II

Look at 'sprintf' which is like printf, but allows you to store the result in a char buffer.

0 Likes
Reply
Anonymous
Not applicable

thanks, now it is working !

0 Likes
Reply
Anonymous
Not applicable

Hey ! Can you help me? I m also facing the same problem. How did you solved it? If possible share with me an example code?

0 Likes
Reply