当前位置:网站首页>esp8266使用TF卡并读写数据(基于arduino)
esp8266使用TF卡并读写数据(基于arduino)
2022-07-07 06:44:00 【Allen953】
介绍
主要用到下面的模块,一个

TF内存卡引脚
这张图片主要告诉我们TF卡的各个引脚是什么作用,因为我们是用的spi接口,所以就看最后一列就可以了。

跑例程
正常情况下,一旦你的arduino IDE里面安装了esp8266的硬件支持,那么就会自动安装上适配esp8266的SD卡库,所以我们是不需要安装库的。
我们打开files这个例程,然后编译。

这个files例程主要是做什么呢?
就是在内存卡上创建一个example.txt的文件,然后再删掉。
接线
编译好了之后,我们开始接线
如果直接跑我们上面编译好的例程,而不对程序做任何修改,那么像下面这样接线就可以了。

接完线之后,就可以直接给板子上电,然后从打开串口,看打印的日志是否正常。
可以看到,内存卡初始化成功,并且成功在上面创建了文件,然后又删掉了文件。

边栏推荐
- DRF authentication, permissions, and flow restrictions (only for views in DRF)
- Summary of PMP learning materials
- MySql数据库-索引-学习笔记
- 【Istio Network CRD VirtualService、Envoyfilter】
- What are the suggestions for PMP candidates?
- Where is the answer? action config/Interceptor/class/servlet
- 【SVN】SVN是什么?怎么使用?
- Locust performance test 5 (analysis)
- 四、机器学习基础
- MySql数据库-事务-学习笔记
猜你喜欢

What is the use of PMP certificate?

PMP certificate preparation experience sharing

Storage of data in memory

Using JWT to realize login function

The configuration and options of save actions are explained in detail, and you won't be confused after reading it

STM32 and motor development (from stand-alone version to Networking)

Two schemes of unit test

Jenkins modifies the system time

Netease cloud wechat applet

Locust performance test 3 (high concurrency, parameter correlation, assembly point)
随机推荐
JWT certification used in DRF
Data association between two interfaces of postman
Postman interface debugging method
MySql数据库-事务-学习笔记
Why is access to the external network prohibited for internal services of the company?
網易雲微信小程序
NATAPP内网穿透
软件建模与分析
Common short chain design methods
Postman data driven
STM32的时钟系统
DRF authentication, permissions, and flow restrictions (only for views in DRF)
Locust performance test 5 (analysis)
Pytest+request+allure+excel interface automatic construction from 0 to 1 [familiar with framework structure]
Pick up the premise idea of programming
Jenkins+ant+jmeter use
The essence of high availability
Redis common commands
Two schemes of unit test
Detailed learning notes of JVM memory structure (I)