“MyFile.read()”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(创建页面,内容为“<pre style="color:green"> myFile.read(); </pre> *'''作用''':<br> 读取SD卡中的文件,务必确认已经通过open()函数打开了文件 *'''参数''':<br>…”)
 
第21行: 第21行:
 
<br>
 
<br>
 
<p style="color: #E87E05;font-size:135%">其他</p>
 
<p style="color: #E87E05;font-size:135%">其他</p>
*[[GPS()|构造函数]]
+
*[[SD卡相关声明|类声明]]
 +
* SD :
 +
 
 +
*[[SD.begin()|begin()]]
 +
*[[SD.open|open()]]
 +
 
 +
* myFile :
 +
 
 +
*[[myFile.close()|close()]]
 +
*[[myFile.available()|available()]]
 +
 
  
 
<br>
 
<br>
  
 
[[https://wiki.microduino.cn/index.php/GPS_Reference 返回GPS库语法手册]]
 
[[https://wiki.microduino.cn/index.php/GPS_Reference 返回GPS库语法手册]]

2018年5月16日 (三) 06:14的版本

myFile.read();
  • 作用:

读取SD卡中的文件,务必确认已经通过open()函数打开了文件

  • 参数:


  • 例子:读取SD卡中的文件
  if (dataFile) {
    while (dataFile.available()) {
      Serial.write(dataFile.read());
    }
    dataFile.close();
  }


其他

  • myFile :



[返回GPS库语法手册]