Skip to content

Commit

Permalink
Added hardware info for the powkiddy rgb30.
Browse files Browse the repository at this point in the history
  • Loading branch information
kloptops committed Oct 2, 2023
1 parent 24e4133 commit 27d3b6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions PortMaster/pugwash
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ class PortMasterGUI(pySDL2gui.GUI, harbourmaster.Callback):
# 'rg503'
# 'rg351v'
# 'rg353v'
'rgb30'
# 'ogs'
# 'ogu'
# 'x55'
Expand Down
14 changes: 9 additions & 5 deletions PortMaster/pylibs/harbourmaster/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
'rgb10max': {'resolution': ( 854, 480), 'analogsticks': 2, 'cpu': 'rk3326', 'capabilities': []},
'rgb10s': {'resolution': ( 480, 320), 'analogsticks': 1, 'cpu': 'rk3326', 'capabilities': []},
'rgb20s': {'resolution': ( 640, 480), 'analogsticks': 2, 'cpu': 'rk3326', 'capabilities': []},
'rgb30': {'resolution': ( 720, 720), 'analogsticks': 2, 'cpu': 'rk3566', 'capabilities': ['power']},
'rk2023': {'resolution': ( 640, 480), 'analogsticks': 2, 'cpu': 'rk3566', 'capabilities': ['power']},
'rk2020': {'resolution': ( 480, 320), 'analogsticks': 1, 'cpu': 'rk3326', 'capabilities': []},

Expand All @@ -65,6 +66,7 @@
## From PortMaster.sh from JELOS, all devices except x55 and rg10max3 have opengl
('jelos', 'x55'): {'capabilities': []},
('jelos', 'rgb10max3'): {'capabilities': []},
('jelos', 'rgb30'): {'capabilities': []},
('jelos', HW_ANY): {'capabilities': ['opengl']},
}

Expand Down Expand Up @@ -94,12 +96,13 @@ def nice_device_to_device(raw_device):

pattern_to_device = (
('Hardkernel ODROID-GO-Ultra', 'ogu'),
('ODROID-GO Advance*', 'oga'),
('ODROID-GO Super*', 'ogs'),
('ODROID-GO Advance*', 'oga'),
('ODROID-GO Super*', 'ogs'),

('Powkiddy RGB10 MAX 3', 'rgb10max3'),
('Powkiddy RK2023', 'rk2023'),
('Powkiddy x55', 'x55'),
('Powkiddy RGB30', 'rgb30'),
('Powkiddy RK2023', 'rk2023'),
('Powkiddy x55', 'x55'),

('Anbernic RG351MP*', 'rg351mp'),
('Anbernic RG351V*', 'rg351v'),
Expand Down Expand Up @@ -286,7 +289,8 @@ def device_info(override_device=None, override_resolution=None):
if "hires" not in info['capabilities']:
info['capabilities'].append("hires")

info['capabilities'].append("wide")
if info['resolution'][0] > info['resolution'][1]:
info['capabilities'].append("wide")

logger.debug(f"DEVICE INFO: {info}")
__root_info = info
Expand Down

0 comments on commit 27d3b6d

Please sign in to comment.