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
超级会员免费看
订阅专栏 解锁全文
32

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



