Arduino-DumbDisplay icon indicating copy to clipboard operation
Arduino-DumbDisplay copied to clipboard

libray seems use a lot of resorce.

Open ghedolo opened this issue 2 years ago • 1 comments

Hi i'm using your lib on an board with a ESP32 wrooom for the very firts time, but

even a small sketch seems use a lot of resources. for example the attached sketch use 83% of the program storage..

Sketch uses 1096561 bytes (83%) of program storage space. Maximum is 1310720 bytes. Global variables use 38004 bytes (11%) of dynamic memory, leaving 289676 bytes for local variables. Maximum is 327680 bytes.

thank for your attention

dd_multiLed.ino.zip

ghedolo avatar Aug 05 '23 17:08 ghedolo

My suggestions:

  • use OTG (i.e. Serial)
  • or use WiFi
  • or use Bluetooth
  • BLE is your last choice

Another thing is ... declare the app to be a "huge app" ... e.g. with with PlatformIO, put in platformio.ini:

board_build.partitions = huge_app.csv


//#define USE_BLE #ifdef USE_BLE #include "esp32bledumbdisplay.h" DumbDisplay dumbdisplay(new DDBLESerialIO("MF15", true, 115200)); #else #if defined(BLUETOOTH) #include "esp32dumbdisplay.h" DumbDisplay dumbdisplay(new DDBluetoothSerialIO(BLUETOOTH, true, 115200), DD_DEF_SEND_BUFFER_SIZE); #elif defined(WIFI_SSID) #include "wifidumbdisplay.h" DumbDisplay dumbdisplay(new DDWiFiServerIO(WIFI_SSID, WIFI_PASSWORD), DD_DEF_SEND_BUFFER_SIZE); #else #include "dumbdisplay.h" DumbDisplay dumbdisplay(new DDInputOutput()); #endif #endif

trevorwslee avatar Apr 01 '24 04:04 trevorwslee