We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a18eb93 commit 2e07085Copy full SHA for 2e07085
libraries/ArduinoTestSuite/examples/ATS_SD_Seek/ATS_SD_Seek.pde
@@ -82,6 +82,24 @@ void setup()
82
83
f.close();
84
85
+ f = SD.open("test.txt");
86
+ ATS_PrintTestStatus("SD.open()", f);
87
+ if (!f) goto done;
88
+
89
+ ATS_PrintTestStatus("position()", f.position() == 0);
90
+ ATS_PrintTestStatus("size()", f.size() == 10);
91
+ ATS_PrintTestStatus("peek()", f.peek() == 'A');
92
+ ATS_PrintTestStatus("read()", f.read() == 'A');
93
94
+ f.seek(4);
95
96
+ ATS_PrintTestStatus("position()", f.position() == 4);
97
98
+ ATS_PrintTestStatus("peek()", f.peek() == '4');
99
+ ATS_PrintTestStatus("read()", f.read() == '4');
100
101
+ f.close();
102
103
done:
104
ATS_ReportMemoryUsage(startMemoryUsage);
105
ATS_end();
0 commit comments