newRPL: [UPDATED April 27-2017] Firmware for testing available for download
|
06-05-2017, 03:06 AM
(This post was last modified: 06-05-2017 03:08 AM by Claudio L..)
Post: #685
|
|||
|
|||
RE: newRPL: [UPDATED April 27-2017] Firmware for testing available for download
(06-05-2017 02:17 AM)smartin Wrote: Oh, that's operator error . Yes, it does work. I was using the following syntax to open the file in the root of the SDcard The partition specifier is entirely optional, you can omit it and in that case "testfile" SDOPENWR will do the trick. In fact, in general I recommend you omit the partition specifier in your code, and let the user decide which partition wants to use for your data. Even with more than one partition in a card you can set the current partition, then you don't need to specify it anymore on the file name. By default the first partition is accessed until another partition is made current. The partition specifier in the name is only useful when you use a partition but want to do one or two operations in another one, and changing the current partition is too much of a hassle. Also, file names can be idents (with single quotes, but they are subject to the restrictions of variable names in the calc, use strings to have more freedom), so you can do 'myvar' DUP RCL SWAP SDSTO to backup 'myvar' to a file 'myvar' in the current directory. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)