Ignore:
Timestamp:
Aug 22, 2020, 5:31:37 PM (6 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye
Children:
056d644
Parents:
8fd7454 (diff), 265ba2b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into debian/bullseye

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/gnuboat/device/bin/gnuboat-splashscreen

    r8fd7454 rce5244e  
    11#!/usr/bin/python
    22'''
    3     Copyright (C) 2016 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2016 EngSaS - Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    2424    from PIL import ImageOps
    2525    from EPD import EPD
    26     epdEnabled = True
     26    epd_enabled = True
    2727except:
    28     epdEnabled = False
     28    epd_enabled = False
    2929
    3030
    31 def displayImage(epd, imageFilePath):
     31def display_image(epd, imageFilePath):
    3232    image = Image.open(imageFilePath)
    3333    image = ImageOps.grayscale(image)
    34     imageResized = image.resize((epd.width, epd.height))
    35     imageBlackWhite = imageResized.convert("1", dither=Image.FLOYDSTEINBERG)
     34    image_resized = image.resize((epd.width, epd.height))
     35    imageBlackWhite = image_resized.convert("1", dither=Image.FLOYDSTEINBERG)
    3636    epd.display(imageBlackWhite)
    3737    epd.update()
    … …  
    6969        sys.exit(2)
    7070
    71     if not epdEnabled:
     71    if not epd_enabled:
    7272        print("Could not initialize EPD or PIL python packages")
    7373        sys.exit(2)
    … …  
    7575    epd = EPD()
    7676    epd.clear()
    77     displayImage(epd, image)
     77    display_image(epd, image)
     78
    7879
    7980if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.