Hi,
I’m putting together a driver for LCD panels, and trying to make it flexible for different IO handling. A few of my challenges are:
-
Some LCD controllers will have a reset pin. Some may not.
I’d like to use the same DECL_COMMAND for both.
Is that possible?
Looking at the SPI implementation that has both a ‘with cs’ and a ‘without cs’ DECL_COMMAND, I’m suspecting not. But maybe that’s just for legacy compatibility reasons. -
In the same vein, I’d like to pass a variable number of Data/Address pins in a different DECL_COMMAND. So the bus width might be 8, or it might be 16 etc… certain platforms like PI Pico with PIO (for mcus with FlexIO) might be able to have pins scattered around making up an 8 or 16 bit bus.
I’d really like to just get an ‘array’ of such pins from the DECL_COMMAND…
Any idea if that’s doable?