Skip to content

Additional framebuffer #16571

Answered by mendenm
Jeff-Squared asked this question in ESP32
Jan 11, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

This is a classic python has-a versus is-a situation. Making something a subclass is cute, but often limiting, in exactly the way you see. You might want to make your LCD class own framebuffers, rather than be a framebuffer. Then, you have complete freedom to control a list of framebuffers, as needed. You can pass through the calls in the framebuf.FrameBuffer class that you actually need, but select which framebuffer in your list receives the calls.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Jeff-Squared
Comment options

@peterhinch
Comment options

@Jeff-Squared
Comment options

Answer selected by Jeff-Squared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
3 participants