Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support arbitrary screen resolution/sizes for theme editor / simulator / emulator #648

Open
clach04 opened this issue Jan 19, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@clach04
Copy link

clach04 commented Jan 19, 2025

Is your feature request related to a problem? If so, please describe the problem.

I want to simulate / edit themes for screen sizes that are not supported by the current code.

Describe the feature / solution to your problem you'd like

I'd like to be able to specify the screen resolution if the device to simulate, without code changes and writing a driver class.

Options for setting resolution:

  • config file, currently ignored by theme editor
  • theme.yaml
  • environment variable

Describe alternatives you've considered / and or tested

Writing a driver class for hardware that may not exist yet is onerous.

Screenshots / photos & mockups of the Turing screen
Add screenshots or photos/mockups of the rendering on the Turing screen to help explain your request.

Image

Environment:

  • Revision of this project: main
    commit 2fcdeb1 (HEAD -> simulate_arbitrary_screen_size, origin/main, origin/HEAD, main)
    Merge: c48637c 7aeed84
    Author: Matthieu Houdebine mat.houdebine@wanadoo.fr
    Date: Wed Jan 8 08:58:39 2025 +0100
  • OS with version: Windows 10
  • Python version: Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32
  • Hardware: NA, happens to be using Intel CPU, see above

Additional context
Add any other context or screenshots about the feature request here.

@clach04 clach04 added the enhancement New feature or request label Jan 19, 2025
clach04 added a commit to clach04/turing-smart-screen-python that referenced this issue Jan 19, 2025
…config mathoudebine#648

Adds OPTIONAL new environment variable; SIM_RESOLUTION
which if set should be AAAxBBB where AAA is horizontal resolution
and BBB us vertical resolution.

Windows example:

    set SIM_RESOLUTION=320x240

Linux shell example:

    export SIM_RESOLUTION=320x240

Includes a sample clock that expects 320x240 resolution.
clach04 added a commit to clach04/turing-smart-screen-python that referenced this issue Jan 19, 2025
…config mathoudebine#648

Adds OPTIONAL new environment variable; SIM_RESOLUTION
which if set should be AAAxBBB where AAA is horizontal resolution
and BBB is vertical resolution.

Windows example:

    set SIM_RESOLUTION=320x240

Linux shell example:

    export SIM_RESOLUTION=320x240

Includes a sample clock that expects 320x240 resolution.
@clach04
Copy link
Author

clach04 commented Jan 19, 2025

Posted PR #649 for review/discussion.

@clach04
Copy link
Author

clach04 commented Jan 19, 2025

Thanks for making this project available! It's going to make prototyping much easier/faster ⏩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant