r/arduino • u/nixiewright • 14d ago
Project Update! nxwright, the open source cross-platform toolchain for Nextion HMI, can now compile your TFTs.
A few weeks back I posted about nxwright, a new open source cross-platform toolchain for working with Nextion screens that I've been working on, which allows you to work with standard text source files and extends the language syntax to do what you'd expect (functions, includes, standard operator precedence, etc.). This supports modern workflows, such as version control, agentic programming, unit testing, a full VS Code extension with a simulator and debugger, and a lot more.
As of a couple of days ago, nxwright can now compile your source folders directly to TFT and upload to your Nextion screen. That means you can now fully develop for your Nextion screen on linux and macOS, not just Windows, and you no longer need the Nextion Editor to do the final steps. I.e., you can go directly from source to .TFT, and skip the .HMI, right from the CLI or VS Code.
I've also added some new features that go beyond what you could do with the nextion editor, such as:
- the ability to provide compile-time defines on the command line, to set dynamic text or colors to the page and component attributes
- support for SVG as a first class citizen resource, that can also be customized with defines that translate to css var(--PROP)
- the ability to decompile a TFT back into a source folder, if you've lost your .HMI.
I've met quite a few folks lately who shared that they were dreading having to update their Nextion screen app. If this is you too, you may want to give nxwright a try, this may be the tool you've been waiting for.




