@profezzorn I have purchased 3 new ST7735 displays to test out.
They are square aspect rations I thought would work for scopes in particular.
In spidisplay.h I can see the size is defined and then an “offset” is applied with InsetT. Is that what I am seeing?
i.e. the first display defined is the AdaFruit358 which has a resolution of 160x128 with no offsets applied.
template<int LAYERS,
class CONFIG = DisplayConfig<1>,
class SA = StandardDisplayAdapter<>>
using SPIDisplay_AdaFruit358 = SPIDisplay77XX<
LAYERS,
CONFIG,
// HELPER
DisplayConfigHelper<LAYERS, CONFIG, SizeT<128, 160>, SA, ST7735>,
The next display defined is the DFRobot096 which has a resolution of 160x80, however the definition is 160x128 with top and bottom offsets of 24, equaling 80 pixels in height.
template<int LAYERS,
class CONFIG = DisplayConfig<1, InsetT<24,24,0,0>>,
class SA = StandardDisplayAdapter<>>
using SPIDisplay_DFRobot096 = SPIDisplay77XX<
LAYERS,
CONFIG,
// HELPER
DisplayConfigHelper<LAYERS, CONFIG, SizeT<128, 160>, SA, ST7735>,
Why is this? Can it not just be specified at the real pixel resolution?
The displays I would like to test are 128x128 and 240x240. Do I need to apply these offsets?
I hope to give it a test in the next few days.