robweber / omni-epd

An EPD (electronic paper display) class abstraction to simplify communications across multiple display types.
GNU General Public License v3.0
77 stars 16 forks source link

Extend INI file #9

Closed robweber closed 3 years ago

robweber commented 3 years ago

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.

robweber commented 3 years ago

Closed with #12