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

Use bitmap layers title as variable names #67

Open
sbrin opened this issue Dec 5, 2023 · 0 comments
Open

Use bitmap layers title as variable names #67

sbrin opened this issue Dec 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@sbrin
Copy link
Owner

sbrin commented Dec 5, 2023

I want to be able to change layer titles and use it in code export as variable names

Currently when you have several drawings, they all named as Layer_#
The resulting code is hard to manage, you cannot tell which icon is that, i.e.:

u8g2.drawXBMP( 0, 31, 15, 14, image_Layer_34_bits);
u8g2.drawXBMP( 110, 0, 18, 9, image_Layer_35_bits);
u8g2.drawXBMP( -2, 15, 18, 11, image_Layer_36_bits);

Let's make it possible to change the layer name and use it in code

This is much useful:

u8g2.drawXBMP( 0, 31, 15, 14, img_folder_bits);
u8g2.drawXBMP( 110, 0, 18, 9, img_battery_bits);
u8g2.drawXBMP( -2, 15, 18, 11, img_bitrate_bits);

All variable names must be converted to C-compatible format (see toCppVariableName)

@sbrin sbrin added the enhancement New feature or request label Dec 5, 2023
@sbrin sbrin changed the title Bitmap layers title as variable names Use bitmap layers title as variable names Jan 8, 2024
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