mirror of
https://github.com/itead/ITEADLIB_Arduino_Nextion.git
synced 2026-03-23 02:16:51 +01:00
// edit example in line 1
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
#include <hmi.h>
|
||||
HMI myhmi(Serial2); // If you want to use another hardware serial,please edit this line.
|
||||
void setup()
|
||||
/*For UNO board,we advice you to use software serial,because hardware serial has been used to output log in this example.*/
|
||||
|
||||
HMI myhmi(Serial2); //For MEGA board,if you want to use another hardware serial,please edit this line.
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
if (myhmi.pictureEdit("p3",10) == 1)
|
||||
|
||||
Reference in New Issue
Block a user