NeoNextion
NeoNextion copied to clipboard
NextionPage::show() and INextionWidget::sendCommand
Can someone please enlighten me how NextionPage::show() could work give how INextionWidget::sendCommand works.
lets assume i want to make page with id 1 visible (currently at page 0) i call show() on the page with id 1, sendcommand compares this new pages id with current page and finds them to be different and then just does a return fals instead of doing something useful.
so it must be impossible to make NextionPage::show() do something useful. or?
Hello!
I can't find, where sendCommand compare the page ID. Instead:
- NextionPage::show() builds the command string and calls sendCommand() (inherited from INextionWidget).
- INextionWidget::sendCommand() calls sendCommand() of the attached Nextion-object
- Nextion::sendCommand() writes the command string to the serial port, followed by 3 times 0xFF