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:
parent
b6ea1e45af
commit
8aa93b6bf6
@ -70,3 +70,10 @@ uint16_t EspClass::getVCC(void)
|
||||
{
|
||||
return system_get_vdd33();
|
||||
}
|
||||
|
||||
uint32_t EspClass::getFreeHeap(void)
|
||||
{
|
||||
return system_get_free_heap_size();
|
||||
}
|
||||
|
||||
|
||||
|
@ -44,6 +44,7 @@ class EspClass {
|
||||
void reset(void);
|
||||
void restart(void);
|
||||
uint16_t getVCC(void);
|
||||
uint32_t getFreeHeap(void);
|
||||
};
|
||||
|
||||
extern EspClass ESP;
|
||||
|
Loading…
x
Reference in New Issue
Block a user