Skip to content

Conversation

@idlesign
Copy link

@idlesign idlesign commented Nov 22, 2025

Hi,

Juggling with OLED_{LANG_NAME} in files seemed to me a little tedious especially for newcomers, so I've decided to propose you to add support for passing preferences via an environment variable.

With it one can do something like the following to have russian glyphs on devices:

$ PREFS="OLED_RU" ./bin/build-firmware.sh heltec-mesh-node-t114 nrf52

For now it's PREFS, but we can change it if required.

Tip

This is not limited to OLED_{LANG_NAME} , one can also pass arbitrary prefs e.g:
$ PREFS="ONE=1 ANOTHER=no" ./bin/build-firmware.sh xxx yyy.

Builds were tested for t114 both with default flags (from userPrefs.jsonc on develop branch) and with additional OLED_RU passed (as above).

Summary:

  • platformio-custom.py - support for prefs via env
  • build-firmware.sh - executable bit is set, usage example is added
  • build-nrf52.sh - usage example is added

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • Heltec T114
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thebentern thebentern requested a review from vidplace7 November 26, 2025 00:58
@idlesign
Copy link
Author

idlesign commented Dec 1, 2025

Hi,

@vidplace7 @thebentern Any updates on this?

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.

1 participant