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

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

边栏推荐
- How to pass the PMP Exam in a short time?
- C language pointer (special article)
- Jmeters use
- Original collection of hardware bear (updated on May 2022)
- C语言指针(上篇)
- STM32 and motor development (from stand-alone version to Networking)
- Schema-validation: wrong column type encountered in column XXX in table XXX
- Skill review of test engineer before interview
- Leetcode question brushing record (array) combination sum, combination sum II
- Sublime Text4 download the view in bower and set the shortcut key
猜你喜欢

Pycharm create a new file and add author information

信息安全实验二 :使用X-SCANNER扫描工具

How to use Arthas to view class variable values

Difference between interface iterator and iteratable

Mysql database lock learning notes

Using JWT to realize login function

PMP Exam details after the release of the new exam outline

Do you have any certificates with high gold content?

PMP certificate preparation experience sharing

串口實驗——簡單數據收發
随机推荐
华为HCIP-DATACOM-Core_03day
STM32 serial port register library function configuration method
Schema-validation: wrong column type encountered in column XXX in table XXX
Pytest+request+allure+excel interface automatic construction from 0 to 1 [familiar with framework structure]
Systick滴答定时器
How long does the PMP usually need to prepare for the exam in advance?
Leetcode刷题记录(数组)组合总和、组合总和 II
消费互联网的产业链其实是很短的,它仅仅承接平台上下游的对接和撮合的角色
Systick tick timer
[chaosblade: node disk filling, killing the specified process on the node, suspending the specified process on the node]
寄存器地址名映射
2020 year end summary
Install pyqt5 and Matplotlib module
Jenkins+ant+jmeter use
[chaosblade: delete pod according to the tag, pod domain name access exception scenario, pod file system i/o failure scenario]
JVM garbage collection detailed learning notes (II)
Mysql database lock learning notes
Two schemes of unit test
DRF defines views and routes
【云原生】DevOps(一):DevOps介绍及Code工具使用