- How to Use
- This example shows that ,when the "+" component on the Nextion screen is released, the value of number component will plus 1,when the "-" component released ,the value of number component will minus 1 every time.
- Author
- huang xianming (email:xianm.nosp@m.ing..nosp@m.huang.nosp@m.@ite.nosp@m.ad.cc)
- Date
- 2015/11/10 2016/12/25 bring HMI up to v0.32 to avoid too old issues by Patrick Martin, no other changes made
- Copyright
- Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
void n0PopCallback(void *ptr);
void b0PopCallback(void *ptr);
void b1PopCallback(void *ptr);
char buffer[100] = {0};
{
&n0,
&b0,
&b1,
NULL
};
void n0PopCallback(void *ptr)
{
dbSerialPrintln("n0PopCallback");
}
void b0PopCallback(void *ptr)
{
uint32_t number;
dbSerialPrintln("b0PopCallback");
number += 1;
}
void b1PopCallback(void *ptr)
{
uint32_t number;
dbSerialPrintln("b1PopCallback");
number -= 1;
}
void setup(void)
{
dbSerialPrintln("setup done");
}
void loop(void)
{
}