Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

NextionPage::show() and INextionWidget::sendCommand #52

Open
TobbeJ opened this issue Sep 14, 2019 · 1 comment
Open

NextionPage::show() and INextionWidget::sendCommand #52

TobbeJ opened this issue Sep 14, 2019 · 1 comment

Comments

@TobbeJ
Copy link

TobbeJ commented Sep 14, 2019

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?

@anstahl73
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants