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

[Blockly][Codegenerator] bitmap naming #400

Open
PaulaScharf opened this issue Feb 14, 2025 · 0 comments
Open

[Blockly][Codegenerator] bitmap naming #400

PaulaScharf opened this issue Feb 14, 2025 · 0 comments
Labels
Blockly Everything which is related to blocks

Comments

@PaulaScharf
Copy link
Member

PaulaScharf commented Feb 14, 2025

Current Block Behavior

The block for the led matrix bitmap has a field to name the bitmap. The user has to manually give a unique name to each bitmap. If the user reuses a name the old bitmap is overwritten. I think this is confusing.

Expected Block Behavior

I propose the following:

Create a new Block to store a bitmap (like a text block). This block will not create a new global variable in the arduino code. Just like the text block also does not.
Image

Have the draw-bitmap-block accept this as input.
Image

Optionally: make the bitmap reusable.
To do so we need to create variables with the "Bitmap" type. Just like its possible for strings and ints and so on. The blockly code with bitmap variables could look like so:

Image

@PaulaScharf PaulaScharf added the Blockly Everything which is related to blocks label Feb 14, 2025
@PaulaScharf PaulaScharf added this to the Blockly Simulator Release milestone Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blockly Everything which is related to blocks
Projects
None yet
Development

No branches or pull requests

1 participant