Skip to content

Commit

Permalink
Merge pull request #173 from mhwlng/main
Browse files Browse the repository at this point in the history
Update hw_map.py for lilygo t-panel
  • Loading branch information
jonasniesner authored Sep 27, 2024
2 parents ce7b529 + a620129 commit e4a974a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/open_epaper_link/hw_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
190: ["ATC MiThermometer BLE", 6, 8],
224: ["AP display", 320, 170],
225: ["AP display", 160, 80],
226: ["LILYGO TPANEL", 480, 480],
240: ["Segmented", 0, 0]
}
def is_in_hw_map(hw_type: int) -> bool:
Expand All @@ -54,4 +55,4 @@ def get_hw_string(hw_type: int) -> str:
return HW_MAP.get(hw_type, "NOT_IN_HW_MAP")[0]

def get_hw_dimensions(hw_type: int) -> Tuple[int, int]:
return HW_MAP.get(hw_type)[1:]
return HW_MAP.get(hw_type)[1:]

0 comments on commit e4a974a

Please sign in to comment.