NEXTION vs DGUS
- Войдите на сайт для отправки комментариев
Чт, 10/12/2020 - 13:28
Влез в один проект по неосторожности :) Почитали описания и выбрали DGUS 1024x600 (DMT10600T070_A2WT). По даташиту волшебный. Основные требования - использование в портретном режиме и оперирование иконками с прозрачным фоном (перемещение по экрану, вращение, наложение). Во время реализации оказалось, что в вертикальном режиме все дико глючит, иконки нифига не прозрачные, подготовка их и загрузка вообще бяда. Короче не спроста этот монитор дешевый, глючный он чрезмерно, до такой степени, что просто мусор, не HMI это, чистая гадость.
Отсюда вопрос к знающим по NEXTION. А что в новых версиях не появилось еще у них (NEXTION) подобного функционала ?
Таскание компонентов, транспарентность - это всё в самой дорогой серии Intellegent. А вот чтобы наложение и вращение - такого не припомню. По мануалу rotate не находится. Только разве что если несколько картинок грузить, уже повернутых и подменять по ходу пьесы. Наложение, наверняка, через кроппинг можно сделать. Но вот в выйдет ли в рантайме сделать это красиво - вопрос. Скриптовый язык-то там деревянный на 90%.
Спасибо ! Ясно. Ничего не поменялось :( Абидна....
Дополняю: в "интеллегентной" серии png с альфа-каналом поддерживается (лого с обтравленным текстом и иконкой), контролы имеют opacity (просвечивают друг сквозь друга). Таскаются с наложением, но есть особенность - контролы с меньшим id всегда накрываются контролами с большим id, z-координаты в явном виде у контрола нет.
На форуме некстиона саппорту вопросы по развороту картинок задавали в начале года, но те выставили условие: >1000 голосов и они подумают. За год набралось где-то голосов 10. Т.е. де-факто отморозились - мол думайте сами, как повернуть картинку средствами MCU.
----------------------------------
For intelligent series.
Add a picture variable attribute for a rotation (transparency picture)
Something like this: p0.rot= 1800 (rotation of 1800 tenths of a degree)
...
4 votes in 3 weeks is not very promising, sorry.
– 1000+ could be accomplished in a weekend if the community truly wanted it.
...
Sadly, the concept to rotate is simple. Adjust by x°. equal distance from axis point.
Do this for every pixel. And when pixel falls across 2 to 6 pixels unevenly, adjust each
The implementation on a octacore 3.8GHz computer system or 1.8GHz cell phone the resources of the multicore CPU and coprocessing GPU and FPU chime in. Multi GB resources in CPU RAM and GPU GRAM and mass temp storage
Those developing their HMI with the MCU side programming should also be some what aware of the programming required
Nextion single core, slower 48MHz to 200MHz processors with perhaps 20KB to 1MB RAM – and clear lack of an nVidia with 2080 cores, becomes very resource hungry
Intelligent Animations is actually rather impressive, even without rotation.
– the GMOVmaker tool allows animations to be created
Look to the factory demo
– “self-leveling” gauge with blended animated cube and blended graphics background
I might be partial, but I think I demonstrated Intelligent is now better than Basic.
And yes, the Intelligent has a much better MCU Nextion side.
– but it is still no graphics card.
Many of the Intelligent Series enhancements CAN be done on the BASIC.
– anti-aliased fonts, edge scrolling in all 4 orientations
– XFloat or Switch, also able to be done on
– stackable gauges, a bit more challenging but 3 handed analog clock on a Basic.
– animations (although no transparency or alpha blending on Basic)
– page transitions, also proven to be doable on a Basic
But as MCU side developers to interface with a Nextion (or generic display)
– then we should likely have an idea of how hard the ask is (because maybe we have attempted such in our own MCU programming, no?)
When we think about what a rotation / animation really is (and we are restricted in our processing resources) then we begin to imagine “pre-processing” image sequences
An animation is a series of images quick enough to suggest motion (I am mostly certain Thierry did a blog entry on flipbook animation)
And many rotations (from a static image) can indeed be preprocessed.
Nextion Intelligent Series allows access to external pictures
– the ExPicture component will display from ram or microSD
– the user side MCU can also process and upload so ExPicture can use.
This allows Nextion to focus on the projects Human Machine Interfacing
----------------------------------