1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

add EspClass::getFreeHeap see #81

This commit is contained in:
Markus Sattler 2015-04-19 09:50:58 +02:00
parent b6ea1e45af
commit 8aa93b6bf6
2 changed files with 8 additions and 0 deletions

View File

@ -70,3 +70,10 @@ uint16_t EspClass::getVCC(void)
{
return system_get_vdd33();
}
uint32_t EspClass::getFreeHeap(void)
{
return system_get_free_heap_size();
}

View File

@ -44,6 +44,7 @@ class EspClass {
void reset(void);
void restart(void);
uint16_t getVCC(void);
uint32_t getFreeHeap(void);
};
extern EspClass ESP;