File tree Expand file tree Collapse file tree 8 files changed +14
-2
lines changed Expand file tree Collapse file tree 8 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 2626#include < SPI.h>
2727#include < SD.h>
2828
29+ using namespace SDLib ;
30+
2931const int chipSelect = 10 ;
3032
3133void setup () {
Original file line number Diff line number Diff line change 2525
2626const int chipSelect = 10 ;
2727
28+ using namespace SDLib ;
29+
2830void setup () {
2931 // Open serial communications and wait for port to open:
3032 Serial.begin (9600 );
Original file line number Diff line number Diff line change 2121*/
2222#include < SD.h>
2323
24+ using namespace SDLib ;
25+
2426const int chipSelect = 10 ;
2527File myFile;
2628
Original file line number Diff line number Diff line change 3333*/
3434#include < SD.h>
3535
36+ using namespace SDLib ;
37+
3638const int chipSelect = 10 ;
3739
3840// file name to use for writing
Original file line number Diff line number Diff line change 2020*/
2121#include < SD.h>
2222
23+ using namespace SDLib ;
24+
2325const int chipSelect = 10 ;
2426File myFile;
2527
Original file line number Diff line number Diff line change 2828*/
2929#include < SD.h>
3030
31+ using namespace SDLib ;
32+
3133const int chipSelect = 10 ;
3234File root;
3335
Original file line number Diff line number Diff line change 1818 uint8_t nfilecount=0;
1919*/
2020
21+ using namespace SDLib ;
22+
2123File::File (SdFile f, const char *n) {
2224 // oh man you are kidding me, new() doesn't exist? Ok we do it by hand!
2325 _file = (SdFile *)malloc (sizeof (SdFile));
Original file line number Diff line number Diff line change @@ -126,8 +126,6 @@ namespace SDLib {
126126// We enclose File and SD classes in namespace SDLib to avoid conflicts
127127// with others legacy libraries that redefines File class.
128128
129- // This ensure compatibility with sketches that uses only SD library
130- using namespace SDLib ;
131129
132130// This allows sketches to use SDLib::File with other libraries (in the
133131// sketch you must use SDFile instead of File to disambiguate)
You can’t perform that action at this time.
0 commit comments