[MAINT] Duplicate DisplayDriverTFT code across boards #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
boards/esp32-32e/DisplayDriverTFT.cppandboards/esp32-32e-4/DisplayDriverTFT.cppare nearly identical (~330 lines each) with only minor differences:transformTouch()for rotated paneldrawStatus()methodCode duplication makes maintenance harder.
Fix
Extract common code to shared base class or template, or use build-time configuration to handle minor differences.