Skip to content

Device Specific Options

Rob edited this page Apr 27, 2021 · 3 revisions

Some device display drivers have options that are unique to that display. When dealing with the device directly these are often added when initializing or displaying an image on the device. To handle these, additional options can be set in the INI file loaded at runtime. These can be set in either the [EPD] section or a device specific section (example: [omni_epd.mock]) of the file depending on your need. As always device specific configurations override global (EPD section) settings.

Below is a list of devices that have additional INI options and what they are:

[inky.impression]
saturation=.5  # saturation of palette - higher value results in a more saturated image

[inky.phat_black]
palette_filter=[[R,G,B],[R,G,B]]  # colors to filter from image prior to writing to display, max colors is 2

[inky.phat_red]
palette_filter=[[R,G,B],[R,G,B]]  # colors to filter from image prior to writing to display, max colors is 2 or 3 depending on color mode used

[inky.phat_yellow]
palette_filter=[[R,G,B],[R,G,B]]  # colors to filter from image prior to writing to display, max colors is 2 or 3 depending on color mode used

[inky.what_black]
palette_filter=[[R,G,B],[R,G,B]]  # colors to filter from image prior to writing to display, max colors is 2

[inky.what_red]
palette_filter=[[R,G,B],[R,G,B]]  # colors to filter from image prior to writing to display, max colors is 2 or 3 depending on color mode used

[inky.what_yellow]
palette_filter=[[R,G,B],[R,G,B]]  # colors to filter from image prior to writing to display, max colors is 2 or 3 depending on color mode used

[omni_epd.mock]
palette_filter=[[R,G,B],[R,G,B]]  # colors to filter from image when in palette mode, max is 256
file=mock_output.png  # path to the file where the image will be written when calling display() on the mock object
write_file=True  # True/False value on if image file should be written when calling display()

Clone this wiki locally