当前位置:网站首页>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的文件,然后再删掉。
接线
编译好了之后,我们开始接线
如果直接跑我们上面编译好的例程,而不对程序做任何修改,那么像下面这样接线就可以了。

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

边栏推荐
猜你喜欢

Confitest of fixture py

How long does the PMP usually need to prepare for the exam in advance?

Huawei HCIP - datacom - Core 03 jours

How to use Arthas to view class variable values

十二、排序

2020 year end summary

Difference between interface iterator and iteratable

Integer or int? How to select data types for entity classes in ORM

Two schemes of unit test

Hard core sharing: a common toolkit for hardware engineers
随机推荐
Huawei hcip datacom core_ 03day
Systick滴答定时器
Locust performance test 4 (custom load Policy)
The essence of high availability
Do you have any certificates with high gold content?
When inputting an expression in the input box, an error is reported: incorrect string value:'\xf0\x9f... ' for column 'XXX' at row 1
Jenkins modifies the system time
数据建模中利用3σ剔除异常值进行数据清洗
Final keyword
PMP certificate preparation experience sharing
Data association between two interfaces of postman
Add new item after the outbound delivery order of SAP mm sto document is created?
Jemter operation
Difference between interface iterator and iteratable
What are the conditions for applying for NPDP?
Variable parameter of variable length function
Regular matching starts with XXX and ends with XXX
How to use Arthas to view class variable values
Upgrade Alibaba cloud RDS (relational database service) instance to com mysql. jdbc. exceptions. Troubleshooting of jdbc4.communicationsexception
Mysql database index study notes