Nextion built in keypad

I have an issue where I keep running into the compiling error with the nextion and not sure how to correct it. Here is the deleclaration. Its just the nexkeyboard.

#include <Nextion.h>


// Define pins for pumps
const int pumpA = 22; // Assume pumpA is for Rum
const int pumpB = 23; // Assume pumpB is for Whisky
// Add more pumps as needed for Vodka and Malibu

// Define the correct PIN code
const char* correctPin = "1234"; // Replace with the actual PIN

// Nextion components
NexPage startPage = NexPage(0, 0, "Start");
NexButton b0 = NexButton(0, 9, "b0");
NexKeyboard keybdB = NexKeyboard(1, 1, "keybdB");

Any help would be appreciated.
Mike

As markd833 pointed out, I left this compiling error. Thanks Markd833! Sorry, Still new with all this.

C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino:14:1: error: 'NexKeyboard' does not name a type
 NexKeyboard keybdB = NexKeyboard(1, 1, "keybdB");
 ^~~~~~~~~~~
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino: In function 'void b0PopCallback(void*)':
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino:37:3: error: 'keybdB' was not declared in this scope
   keybdB.show();
   ^~~~~~
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino: In function 'void keybdBPopCallback(void*)':
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino:43:3: error: 'keybdB' was not declared in this scope
   keybdB.getText(enteredPin, sizeof(enteredPin));
   ^~~~~~
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino: At global scope:
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino:88:4: error: 'keybdB' was not declared in this scope
   &keybdB,
    ^~~~~~
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino: In function 'void setup()':
C:\Users\Michael Kelly\OneDrive\Documents\Arduino\Mixer_Senior_Project_v2\Mixer_Senior_Project_v2.ino:110:3: error: 'keybdB' was not declared in this scope
   keybdB.attachPop(keybdBPopCallback, &keybdB);
   ^~~~~~

exit status 1

Compilation error: 'NexKeyboard' does not name a type

The other issue you have is that nobody but you knows what the compiling error is. Copy the output of the compilation process into this discussion so others can see the error too.

@markd833 I have updated it. Sorry about that.

Try #include "Nextion.h", just to rule it out.

There is also this link that may be of use.

Thanks @HazardsMind. much appreciated.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.