mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
add ESP.getFlashChipId()
This commit is contained in:
parent
70ade65582
commit
8cb330eadf
@ -89,6 +89,11 @@ uint32_t EspClass::getChipId(void)
|
||||
return system_get_chip_id();
|
||||
}
|
||||
|
||||
uint32_t EspClass::getFlashChipId(void)
|
||||
{
|
||||
return spi_flash_get_id();
|
||||
}
|
||||
|
||||
const char * EspClass::getSDKversion(void)
|
||||
{
|
||||
return system_get_sdk_version();
|
||||
|
@ -69,6 +69,7 @@ class EspClass {
|
||||
uint32_t getFreeHeap(void);
|
||||
|
||||
uint32_t getChipId(void);
|
||||
uint32_t getFlashChipId(void);
|
||||
|
||||
const char * getSDKversion(void);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user