Add mock ESP class

This commit is contained in:
Jaakko Haakana 2025-08-22 21:44:24 +03:00
parent 39ef78fd4a
commit 8494463926
2 changed files with 13 additions and 0 deletions

View file

@ -14,3 +14,5 @@ void pinMode(uint8_t pin, uint8_t mode) {}
int max(int a, int b) {
return (a > b) ? a : b;
}
ESPClass ESP;

View file

@ -24,4 +24,15 @@ void delay(unsigned long ms);
void delayMicroseconds(unsigned long us);
int max(int a, int b);
class ESPClass {
public:
size_t getFlashChipSize() {
// This is a placeholder for the actual implementation
// that retrieves the flash chip size.
return 4 * 1024 * 1024; // Example: returning 4MB
}
};
extern ESPClass ESP;
#endif