A possible extension for the INI could allow for device specific parameters to be set for things that are device driver dependent. Examples of this include initialization parameters to set b/w vs grayscale for supported devices or pass in values like saturation for Inky Impression devices to the display() function. These are values that don't adjust the Image being passed to the display but instead configuration values on the display itself.
The way this would work is to define a device specific section in the ini file:
[omni-epd.mock]
grayscale=True
Implementing classes would be responsible for checking if these values exist and applying them accordingly. Advantages to this are that implementers can either bundle device specific configs with their projects per the global INI file; or users can modify them to their liking.
A possible extension for the INI could allow for device specific parameters to be set for things that are device driver dependent. Examples of this include initialization parameters to set b/w vs grayscale for supported devices or pass in values like saturation for Inky Impression devices to the
display()
function. These are values that don't adjust theImage
being passed to the display but instead configuration values on the display itself.The way this would work is to define a device specific section in the ini file:
Implementing classes would be responsible for checking if these values exist and applying them accordingly. Advantages to this are that implementers can either bundle device specific configs with their projects per the global INI file; or users can modify them to their liking.