Our Blog

509, 2022

Advanced HMI programming: Dynamic button repeat action

By |September 5th, 2022|

Did you ever see the need to increment or decrement values, for example on a settings screen? Did you want to avoid multiple clicks and would have preferred just keeping a button pressed while the value would continue to increment or decrement? And which would go at a higher speed when pressing the button for a longer time? After reading this article, you'll know how to do that with your beloved Nextion HMI! And no, there is NO need to add to the event code of each button! Only 4 invisible components and less than 20 lines of code are required to transform all buttons on a page into repeater buttons. That is so compact that we'll pack these into a single page template and export it. From then on, if you need buttons with accelerated auto-repeat on a page, go to the page pane, but instead of adding a blank page, import the template and you are done. Automatically, without an additional line of code, all buttons will magically have the repeat functionality!

2208, 2022

Password security in Nextion HMI – Part 2: A modular software concept

By |August 22nd, 2022|

Two weeks ago, we discussed a few password security strategies. If you haven’t already, please read that before continuing. While all the basic mechanisms have been explained and code examples have been shown, using these in your own project might seem difficult since there are so many places where code snippets were to add.  Thinking about that latter aspect and how to ease the re-utilization, I suddenly had an inspiration: Why not follow the example of the keyboard system pages which are automatically added to your project when you link a text or number component to one of the built-in keyboard screens? 

1508, 2022

The brand new Nextion MIDI I/O interface has arrived!

By |August 15th, 2022|

Designed for optimal interoperability with Nextion HMI, this universal TTL UART to MIDI interface transforms your favorite Nextion into a full-fledged MIDI controller. But we didn’t stop there. The NexMIDI (as my Chinese colleagues baptized it) is designed to be interfaced not only with any Nextion HMI display, but also with most microprocessors like Arduino, Teensy, PIC, STM32, Raspberry Pi, and so on. Logic level-wise, the RX pin of J2 accepts either 3.3V or 5V TX level from your Nextion Screen or from any MCU.

808, 2022

Password security in Nextion HMI – Part 1: Professionalize your development

By |August 8th, 2022|

Who hasn't experienced this - you are coding a HMI project and there are parts, for example a settings page, which you want to protect with a password. And then, tons of thoughts and considerations arise: Where and how do I store the password for comparison with the user entry? How do I protect a specific page from unauthorized access? And so on... Neither the Nextion's integrated MCU nor the Nextion programming language give us the required computing power to do true and secure encryption. But we aren't left alone with that. There exist a few simple technologies which allow us to add some layers of security to our HMI project. You may use one, several or all of them, depending on your project's security specifications or your personal level of paranoia 😉

2507, 2022

The Nextion RTC – Usage and debugging (with video)

By |July 25th, 2022|

While the RTC of the Enhanced and Intelligent series HMI screens is pretty straightforward, once one has understood the concept of the RTC0 to RTC6 system variables, there is not much information about solving problems. That's why we see here a simple RTC demo project, followed by a video, explaining how to preset the RTC and how to fix issues.

Go to Top