I installed neonextion library cause of missing function im a newbie trying to finish my project of temp and humidity sensor hoping someone would help me of my program cause i dont know what to do now.
(here are were the problems occur)
#include "Nextion.h"
#include<SoftwareSerial.h>
#include <cactus_io_AM2302.h>
#define pinA1 23
#define pinA2 25
#define pinA3 27
#define pinB1 29
#define pinB2 31
#define pinB3 33
#define pinC1 35
#define pinC2 37
#define pinC3 39
#define pinD1 41
#define pinD2 43
#define pinD3 45
#define relayValveA 22
#define relayValveB 24
#define relayValveC 26
#define relayValveD 28
#define SSRPump 38
#define inFan 34
#define outFan 36
AM2302 dhtA1(pinA1); AM2302 dhtA2(pinA2); AM2302 dhtA3(pinA3);
AM2302 dhtB1(pinB1); AM2302 dhtB2(pinB2); AM2302 dhtB3(pinB3);
AM2302 dhtC1(pinC1); AM2302 dhtC2(pinC2); AM2302 dhtC3(pinC3);
AM2302 dhtD1(pinD1); AM2302 dhtD2(pinD2); AM2302 dhtD3(pinD3);
float secHumid, secTemp;
int intHumid, intTemp, currentState, pumpState, intakeState, outtakeState, valveA, valveB, valveC, valveD, flagPump;
uint32_t secData;
float theHumid, theTemp;
String d;
float humidA, humidB, humidC, humidD, humidAll;
float tempA, tempB, tempC, tempD, tempAll;
int intHumidA, intHumidB, intHumidC, intHumidD, intHumidAll;
int inttempA, inttempB, inttempC, inttempD, inttempAll;
int countingSMS = 0;
SoftwareSerial mySerial (10, 11);
NexNumber humidNum = NexNumber(1, 5, "n0");
NexNumber tempNum = NexNumber(1, 6, "n1");
NexNumber secNum = NexNumber(1, 15, "n2");
NexText pumpText = NexText(1, 17, "t0");
NexText intakeText = NexText(1, 18, "t1");
NexText outtakeText = NexText(1, 19, "t2");
NexText valveAText = NexText(1, 20, "t3");
NexText valveBText = NexText(1, 21, "t4");
NexText valveCText = NexText(1, 22, "t5");
NexText valveDText = NexText(1, 23, "t6");
NexPicture manualPic = NexPicture(1, 16, "p12");
NexPicture pumpPic = NexPicture(2, 1, "p0");
NexPicture backPic = NexPicture(2, 6, "p5");
NexTouch *nex_listen_list[] = {
&manualPic,
&pumpPic,
&backPic,
NULL
};
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
MUSHROOM:41: error: 'NexNumber' does not name a type
NexNumber humidNum = NexNumber(1, 5, "n0");
^
MUSHROOM:42: error: 'NexNumber' does not name a type
NexNumber tempNum = NexNumber(1, 6, "n1");
^
MUSHROOM:43: error: 'NexNumber' does not name a type
NexNumber secNum = NexNumber(1, 15, "n2");
^
MUSHROOM:44: error: 'NexText' does not name a type
NexText pumpText = NexText(1, 17, "t0");
^
MUSHROOM:45: error: 'NexText' does not name a type
NexText intakeText = NexText(1, 18, "t1");
^
MUSHROOM:46: error: 'NexText' does not name a type
NexText outtakeText = NexText(1, 19, "t2");
^
MUSHROOM:47: error: 'NexText' does not name a type
NexText valveAText = NexText(1, 20, "t3");
^
MUSHROOM:48: error: 'NexText' does not name a type
NexText valveBText = NexText(1, 21, "t4");
^
MUSHROOM:49: error: 'NexText' does not name a type
NexText valveCText = NexText(1, 22, "t5");
^
MUSHROOM:50: error: 'NexText' does not name a type
NexText valveDText = NexText(1, 23, "t6");
^
MUSHROOM:51: error: 'NexPicture' does not name a type
NexPicture manualPic = NexPicture(1, 16, "p12");
^
MUSHROOM:52: error: 'NexPicture' does not name a type
NexPicture pumpPic = NexPicture(2, 1, "p0");
^
MUSHROOM:53: error: 'NexPicture' does not name a type
NexPicture backPic = NexPicture(2, 6, "p5");
^
MUSHROOM:55: error: 'NexTouch' does not name a type
NexTouch *nex_listen_list[] = {
^
C:\Users\owner\Desktop\programing thesis\MUSHROOM (android-ardiuno-nextion)\MUSHROOM\MUSHROOM.ino: In function 'void setup()':
MUSHROOM:83: error: 'manualPic' was not declared in this scope
manualPic.attachPop(manualPicPopCallback, &manualPic);
^
exit status 1
'NexNumber' does not name a type
------------------------------------------------------------------------------------------------------.txt (664 Bytes)