IoT|硬體|設備|Arduino EEPROM 記憶儲存
介紹 電子抹除式可複寫唯讀記憶體(Electrically- Erasable Programmable Read-Only Memory) Arduino 板上的微控制器有 512 位元組 的 EEPROM 存儲器:當開發板關閉時(就像一個小型硬盤驅動器)開始記憶(即是保存這些數值)。 這個解決方案可以節省執行時間,因為每一個寫操作需要 3.3 毫秒; EEPROM 也有每個單位置 100.000 的寫週期的限 不同設備 EEPROM 有不同容量 Arduno Duemilanove 512b EEPROM storage Arduino Uno 1kb EEPROM storage Arduino Mega 4kb EEPROM storage 官方提供了一些 Examples,裡面有完整的程式碼 * EEPROM.update() * EEPROM library reference * EEPROM Clear - Fills the content of the EEPROM memory with 「 0 」 . (清理 EEPROM 裡面的數據。) * EEPROM Read – Reads values stored into EEPROM and prints them on Serial. (讀取 EEPROM ,並且發送它的值到電腦) * EEPROM Write – Stores values read from A0 into EEPROM. (保存模擬輸入引腳的值到 EEPROM ) * EEPROM Crc – Calculates the CRC of EEPROM contents as if it was an array. (將 EEPROM 內容里的 CRC 當作數組分析) * EEPROM Iteration – Programming examples on how to go through the EEPROM memory locations. (明白怎樣到達 EEPROM 存儲本地。) * EEPROM Put – Put values i...