本篇分享兩單元.
(1) 清除飛控板EEPROM資料 - 參考古哥老師的教學..(Link)
要先備份辛苦弄好的數據..我都用抓圖存檔處理或用手機軟體存
PROFILE亦可..清完後重新上傳在設定上去
這部分很簡單.. 只要把這部分(虛線中間COPY進去重新編譯上傳既可)
---------------------------------------------------------------------------------------
/*
* EEPROM Clear
*
* Sets all of the bytes of the EEPROM to 0.
* This example code is in the public domain.
*/
#include <EEPROM.h>
void setup()
{
// write a 0 to all 512 bytes of the EEPROM
for (int i = 0; i < 512; i++)
EEPROM.write(i, 0);
// turn the LED on when we're done
digitalWrite(13, HIGH);
}