Go Down

Topic: Where is File definition? (Read 573 times) previous topic - next topic

liudr

I am trying to convert printing Serial debug information into saving them to SD card. I thought that File might be derived from Stream but I can't find where File is defined. Can someone help me? Thanks.

johnwasser

/Applications/Arduino 1.0.1.app/Contents/Resources/Java/libraries/SD/SD.h

And, yes, it's derived from Stream:
Code: [Select]

    class File : public Stream {
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

liudr

Thanks John. I guess I would be able to do it then. Just need to replace all the Serial with a pointer. Not too hard.

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!

Arduino
via Egeo 16
Torino, 10131
Italy