@vitorxlima Easy! Put a diode in series with the non-rechargeable battery to allow the battery to dis-charge and run the board but not allow the USB to pass current to it.
@whippe Interesting!
hmmm...I am way out of my depth here.
The PeakCan seems to be CAN to USB.
Do you have an example sketch to base this on?
The ESP32 connects to which end, the USB or CAN?
Does the equipment offer automotive style OBDII communication?
If you have the time, I'd like to know!
@teastain fantastic link many thanks again, do you know anything about using DMA on the ESP32-S3?
I want to try and improve the gfx performance of the Arduino_GFX library, and it looks like memory performance is quite the limiting factor (possibly due to the canvas buffers being allocated in ps_ram?).
Found that the arduinoexpressif32 framework has some psram functions builtin:
if psramFound() == true, then you can call ps_malloc(), ps_calloc(), and ps_realloc()... but apparently no ps_free(), ps_size(), or ps_avail()
So it's possible and quite easy to allocate the psram of the T-Display S3, but annoyingly not find out how much there is, or to be able to free it if you don't need it anymore.
@teastain
When you only use a single simple sketch, Arduino IDE is ok.
When you use many files, many classes, many self-maintained libraries, platformio is a better choice.