mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-10 14:42:08 +03:00
add ESP.getFlashChipId()
This commit is contained in:
@ -89,6 +89,11 @@ uint32_t EspClass::getChipId(void)
|
|||||||
return system_get_chip_id();
|
return system_get_chip_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t EspClass::getFlashChipId(void)
|
||||||
|
{
|
||||||
|
return spi_flash_get_id();
|
||||||
|
}
|
||||||
|
|
||||||
const char * EspClass::getSDKversion(void)
|
const char * EspClass::getSDKversion(void)
|
||||||
{
|
{
|
||||||
return system_get_sdk_version();
|
return system_get_sdk_version();
|
||||||
|
@ -69,6 +69,7 @@ class EspClass {
|
|||||||
uint32_t getFreeHeap(void);
|
uint32_t getFreeHeap(void);
|
||||||
|
|
||||||
uint32_t getChipId(void);
|
uint32_t getChipId(void);
|
||||||
|
uint32_t getFlashChipId(void);
|
||||||
|
|
||||||
const char * getSDKversion(void);
|
const char * getSDKversion(void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user