Go Down

Topic: Arduino with USB Thumb Drive (Read 3264 times) previous topic - next topic


I have everything working except for one thing. When I write my log data to the drive, it appends the text to the right of the previous data. This gives me a single line extending farther and farther to the right. How do I get a new line started for each new entry? Help me please somebody!


By the way, this is a Vinculum VDIP1.


You have to add a carriage return and/or linefeed to each line (depending which system you're going to read this on).

Instead of writing "This is a line" for example, write out "This is a line\n"

The Arduino Drum Machine: MIDI development system with 14-track MIDI drum machine sequencer / groove-box software


I have tried the following:


but, it doesn't work.....


Perhaps try \r as well?

Code: [Select]

The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, speaker, microphone, light sensor, potentiometer, pushbuttons


Yay! With your help, it now works!

You gave me the command, but it still wasn't working. I realized that I was not adding the characters to my count in the WRF command, so the "\r\n" wasn't getting to the thumb drive. Duh! Thanks again!

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131