Arduino数据存储:EEPROM与SD卡使用指南
1. EEPROM草图测试
要测试EEPROM草图,需确保代码能编译,且硬件设置正确。当草图编译完成后,将其上传到Arduino并启动串口监视器。
首次加载草图时,需按下按钮初始化EEPROM,因为新芯片上的值未初始化,此操作仅在首次运行草图时需要。完成后,串口监视器应显示类似如下的输出:
Welcome to the Arduino external EEPROM project.
EEPROM at address 0x50 has been initialized.
Byte pointer: 2
Bytes per sample: 2
Number of samples: 0
START: 2
START: 4
First value: 6011
Second value: 8088
Byte pointer: 6
Bytes per sample: 2
Number of samples: 2
START: 6
START: 8
First value: 6011
Second value: 8088
Byte pointer: 10
Bytes per sample: 2
Number of samples: 4
START: 10
START: 12
First value: 6011
Second value: 8088
EEPROM at address 0x50 has been initialized.
Byte pointer: 2
Bytes per sample: 2
Number of samples: 0
START: 2
START:
超级会员免费看
订阅专栏 解锁全文
32

被折叠的 条评论
为什么被折叠?



