-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental support for the 240x240 1.3in display hat
- Loading branch information
1 parent
c649211
commit 879e0b9
Showing
5 changed files
with
67 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
wlanpi-fpms (1.3.7) unstable; urgency=medium | ||
|
||
* Experimental support for the 240x240 1.3in display hat | ||
|
||
-- Adrian Granados <[email protected]> Tue, 02 Apr 2024 00:00:00 -0500 | ||
|
||
wlanpi-fpms (1.3.6) unstable; urgency=medium | ||
|
||
* Add option to set regulatory domain to NL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,32 +9,29 @@ | |
import pathlib | ||
from fpms.modules.env_utils import EnvUtils | ||
from fpms.modules.platform import * | ||
from fpms.modules.display import * | ||
|
||
__version__ = "2.0.3" | ||
__author__ = "[email protected]" | ||
|
||
env_util = EnvUtils() | ||
PLATFORM = env_util.get_platform() | ||
DISPLAY_TYPE = env_util.get_display_type() | ||
# Uncomment the line below to force a display type | ||
#DISPLAY_TYPE = DISPLAY_TYPE_ST7789 | ||
|
||
# set misc vars depending on platform type | ||
#HEIGHT_OFFSET = 0 | ||
#IMAGE_DIR = "images/128x64" | ||
#MAX_TABLE_LINES = 4 | ||
#MAX_PAGE_LINES = 3 | ||
#DISPLAY_MODE = '1' | ||
|
||
HEIGHT_OFFSET = 64 | ||
IMAGE_DIR = "images/128x128" | ||
MAX_TABLE_LINES = 9 | ||
MAX_PAGE_LINES = 8 | ||
DISPLAY_MODE = 'RGB' | ||
|
||
PAGE_SLEEP = 300 # Time in secs before sleep | ||
PAGE_WIDTH = 128 # Pixel size of screen width | ||
PAGE_HEIGHT = 64 + HEIGHT_OFFSET # Pixel size of screen height | ||
NAV_BAR_TOP = 54 + HEIGHT_OFFSET # Top pixel number of nav bar | ||
PAGE_SLEEP = 300 # Time in secs before sleep | ||
PAGE_WIDTH = 128 # Pixel size of screen width | ||
PAGE_HEIGHT = 128 # Pixel size of screen height | ||
NAV_BAR_TOP = PAGE_HEIGHT - 10 # Top pixel number of nav bar | ||
STATUS_BAR_HEIGHT = 16 | ||
SYSTEM_BAR_HEIGHT = 15 | ||
|
||
MENU_VERSION = __version__ # fpms version | ||
|
||
# figure out the script path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
""" | ||
display.py - display types | ||
""" | ||
|
||
DISPLAY_TYPE_SSD1351 = "ssd1351" | ||
DISPLAY_TYPE_ST7735 = "st7735" | ||
DISPLAY_TYPE_ST7789 = "st7789" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters