Refactoring displays

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-25 22:52:42 +01:00
parent f140fe1a2d
commit 8013109ef7
212 changed files with 295 additions and 378 deletions

View File

@ -33,7 +33,7 @@ class LcdHat(DisplayImpl):
def initialize(self): def initialize(self):
logging.info("initializing lcdhat display") logging.info("initializing lcdhat display")
from pwnagotchi.ui.hw.libs.waveshare.lcdhat.epd import EPD from pwnagotchi.ui.hw.libs.waveshare.lcd.lcdhat.epd import EPD
self._display = EPD() self._display = EPD()
self._display.init() self._display.init()
self._display.clear() self._display.clear()

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 960 EPD_WIDTH = 960

View File

@ -29,7 +29,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 80 EPD_WIDTH = 80

View File

@ -80,7 +80,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 200 EPD_WIDTH = 200

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 200 EPD_WIDTH = 200

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 200 EPD_WIDTH = 200

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 200 EPD_WIDTH = 200

View File

@ -27,7 +27,7 @@
# THE SOFTWARE. # THE SOFTWARE.
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 152 EPD_WIDTH = 152

View File

@ -29,11 +29,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 168 EPD_WIDTH = 168

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 122 EPD_WIDTH = 122

View File

@ -27,7 +27,7 @@
# THE SOFTWARE. # THE SOFTWARE.
# #
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import RPi.GPIO as GPIO import RPi.GPIO as GPIO
# import numpy as np # import numpy as np

View File

@ -40,9 +40,8 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
from PIL import Image from PIL import Image
import RPi.GPIO as GPIO
# Display resolution # Display resolution
EPD_WIDTH = 104 EPD_WIDTH = 104

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 122 EPD_WIDTH = 122

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 122 EPD_WIDTH = 122

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 122 EPD_WIDTH = 122

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 104 EPD_WIDTH = 104

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 122 EPD_WIDTH = 122

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
from PIL import Image from PIL import Image
# Display resolution # Display resolution

View File

@ -29,9 +29,8 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
from PIL import Image from PIL import Image
import RPi.GPIO as GPIO
# Display resolution # Display resolution
EPD_WIDTH = 104 EPD_WIDTH = 104

View File

@ -29,11 +29,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 122 EPD_WIDTH = 122

View File

@ -29,11 +29,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 122 EPD_WIDTH = 122

View File

@ -29,11 +29,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 168 EPD_WIDTH = 168

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 152 EPD_WIDTH = 152

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 152 EPD_WIDTH = 152

View File

@ -29,11 +29,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 184 EPD_WIDTH = 184

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 176 EPD_WIDTH = 176

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 176 EPD_WIDTH = 176

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 176 EPD_WIDTH = 176

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 176 EPD_WIDTH = 176

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 128 EPD_WIDTH = 128

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 128 EPD_WIDTH = 128

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 128 EPD_WIDTH = 128

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 128 EPD_WIDTH = 128

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 128 EPD_WIDTH = 128

View File

@ -30,9 +30,8 @@
# THE SOFTWARE. # THE SOFTWARE.
# #
from distutils.command.build_scripts import build_scripts
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 128 EPD_WIDTH = 128

View File

@ -29,11 +29,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 168 EPD_WIDTH = 168

View File

@ -28,8 +28,7 @@
# #
import logging import logging
from multiprocessing.reduction import recv_handle from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
from .. import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 240 EPD_WIDTH = 240

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 280 EPD_WIDTH = 280

View File

@ -30,7 +30,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 640 EPD_WIDTH = 640

View File

@ -29,9 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
from PIL import Image
import RPi.GPIO as GPIO
# Display resolution # Display resolution
EPD_WIDTH = 400 EPD_WIDTH = 400

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 800 EPD_WIDTH = 800

View File

@ -29,9 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
from PIL import Image
import RPi.GPIO as GPIO
# Display resolution # Display resolution
EPD_WIDTH = 400 EPD_WIDTH = 400

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 400 EPD_WIDTH = 400

View File

@ -28,7 +28,7 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 400 EPD_WIDTH = 400

View File

@ -29,11 +29,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 512 EPD_WIDTH = 512

View File

@ -30,11 +30,9 @@
# #
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
import PIL
from PIL import Image from PIL import Image
import io
# Display resolution # Display resolution
EPD_WIDTH = 600 EPD_WIDTH = 600

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 792 EPD_WIDTH = 792

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 792 EPD_WIDTH = 792

View File

@ -29,7 +29,7 @@
import logging import logging
from .. import epdconfig from pwnagotchi.ui.hw.libs.waveshare.epaper import epdconfig
# Display resolution # Display resolution
EPD_WIDTH = 600 EPD_WIDTH = 600

Some files were not shown because too many files have changed in this diff Show More