jyberg / Enhanced-Nextion-Library

Enhanced Nextion library for Arduino, NodeMcu, Esp8266,...
MIT License
47 stars 23 forks source link

currentPageIdCallback usage #21

Closed pilaf78 closed 3 years ago

pilaf78 commented 3 years ago

Hi ,

First off all , thank you for this awesome library :)

Now im blocked on an implementation of the currentPageIdCallback I have no idea how to implement that... Should i give a pointer of function ?

Can you give me an exemple of implementation ?

Many thanks for you help

jyberg commented 3 years ago

hi,

-CurrentPageId is callback function that you need initialize: // functional callbacks nextion->currentPageIdCallback = currentPageCallback;

pilaf78 commented 3 years ago

Good its ok Many thanks :)