Skip to content

Commit

Permalink
Merge branch 'feature/display_config' into wstd2daisy
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Feb 11, 2024
2 parents 0cde7e2 + ecadabf commit 373c7b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/json2daisy/json2daisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def generate_header(board_description_dict: dict) -> 'tuple[str, dict]':
target['defines']['OOPSY_OLED_DISPLAY_WIDTH'] = target['display']['dim'][0]
target['defines']['OOPSY_OLED_DISPLAY_HEIGHT'] = target['display']['dim'][1]

target['displayprocess'] = target['display'].get('process', '')

replacements = {}
replacements['name'] = target['name']
replacements['som'] = som
Expand Down Expand Up @@ -324,7 +326,8 @@ def generate_header(board_description_dict: dict) -> 'tuple[str, dict]':
'components': components,
'aliases': target['aliases'],
'channels': audio_channels,
'has_midi': target.get('has_midi', False)
'has_midi': target.get('has_midi', False),
'displayprocess': target.get('displayprocess', '')
}

return rendered_header, board_info
Expand Down

0 comments on commit 373c7b6

Please sign in to comment.