本站改版新增arduino频道
arduino 硬件配置信息串口打印输出
/* Blink This example code is in the public domain. https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink */ void setup() { Serial.begin(115200); // initialize digital pin LED_BUILTIN as an output. pinMode(12, OUTPUT); pinMode(13, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(12, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(13, LOW); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(12, LOW); // turn the LED off by making the voltage LOW digitalWrite(13, HIGH); delay(1000); Serial.printf("getHeapSize= %d \n",ESP.getHeapSize()); delay(10); Serial.printf("getFreeHeap= %d \n",ESP.getFreeHeap()); delay(10); Serial.printf("getChipRevision= %d \n",ESP.getChipRevision()); // 3 delay(10); Serial.printf("getChipRevision= %s \n",ESP.getChipModel()); //ESP32-C3 delay(10); Serial.printf("getChipCores= %d Core\n",ESP.getChipCores()); // 1 delay(10); Serial.printf("getCpuFreqMHz= %d MHz\n",ESP.getCpuFreqMHz()); //160 delay(10); // Serial.printf("getSdkVersion= %s \n",ESP.getSdkVersion()); // Serial.printf("getFlashChipSize= %d \n",ESP.getFlashChipSize()); // Serial.printf("getFlashChipSpeed= %d \n",ESP.getFlashChipSpeed()); Serial.printf("getSketchSize= %d bytes\n",ESP.getSketchSize()); //250128 delay(10); Serial.printf("getFreeSketchSpace= %d bytes\n",ESP.getFreeSketchSpace()); //13631488 bytes delay(10); Serial.printf("getSketchMD5= %s \n",ESP.getSketchMD5().c_str());//acaaaa867e2263c1f83c0daef8474855 delay(10); uint32_t flash_Size = ESP.getFlashChipSize(); Serial.printf("getFlashChipSize= %d \n",flash_Size); //16777216 delay(10); Serial.printf("getFlashChipSpeed= %d \n",ESP.getFlashChipSpeed()); //80000000 delay(10); FlashMode_t flash_Mode = ESP.getFlashChipMode(); Serial.printf("Flash mode: %s\n", (flash_Mode == FM_QIO ? "QIO" : flash_Mode == FM_QOUT ? "QOUT" : flash_Mode == FM_DIO ? "DIO" : flash_Mode == FM_DOUT ? "DOUT" : "UNKNOWN")); delay(1000); }
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0095310211181641 seconds