Skip to content

Add support for print parameters (palette and margins) - #1

Open
marian-m12l wants to merge 2 commits into
stacksmashing:mainfrom
marian-m12l:main
Open

Add support for print parameters (palette and margins)#1
marian-m12l wants to merge 2 commits into
stacksmashing:mainfrom
marian-m12l:main

Conversation

@marian-m12l

Copy link
Copy Markdown

On the firmware side:

  • Send a "PARAMS" message before "PRINT" message
  • Send status 0x08 after init command (was necessary for my test rom. there are other status codes but I don't know if official games check the status)
  • Commented out some unused stuff

On the web UI side:

  • Handle the "PARAMS" message to update the palette and margins
  • Resize canvas according to margins and available pixel data
  • Apply palette and margins

@marian-m12l

Copy link
Copy Markdown
Author

Hi!
I added support for custom palette generation. To avoid coupling this with the printing parameters support, I'll make another PR with custom palette only.

@nezza

nezza commented Jan 20, 2022

Copy link
Copy Markdown
Contributor

This is awesome! Will test as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants