Loading poolpay/display/Display.py 0 → 100644 +13 −0 Changes for poolpay/display/Display.py: 13 added lines, 0 removed lines. Original line number Diff line number Diff line from dataclasses import dataclass from pathlib import Path @dataclass(frozen=True) class Display: framebuffer_path: Path width: int height: int def show(self, picture: bytes) -> None: with self.framebuffer_path.open("wb") as f: f.write(picture) Loading
poolpay/display/Display.py 0 → 100644 +13 −0 Changes for poolpay/display/Display.py: 13 added lines, 0 removed lines. Original line number Diff line number Diff line from dataclasses import dataclass from pathlib import Path @dataclass(frozen=True) class Display: framebuffer_path: Path width: int height: int def show(self, picture: bytes) -> None: with self.framebuffer_path.open("wb") as f: f.write(picture)