starfire151
Active member
I've gotten a Nextion NX4832T035 display working with a Teensy 4.0. The display shows "Left" and "Right" button objects with corresponding count objects. In addition, I load an image for the background on the display. The Teensy has a Joystick, an A4988 stepper controller and a NEMA17S stepper motor connected, in addition to the Nextion display. When the "Left" button is pressed on the display, the stepper motor revolves in a left direction for 500 steps. Similarly, when the "Right" button is pressed on the display, the stepper motor revolves in a right direction for 500 steps. When the joystick is moved left, the stepper moves left. When the joystick is moved right, the stepper moves right. All statuses are shown on the terminal session. All seems to be working well but I have a few questions...
1. The button presses from the display show debug information on the terminal session. How do I disable the debug information? I've tried to #undef dbSerial (which is defined in the NexConfig.h file for debug output) in my Teensy .ino file and recompiled but that didn't work. The debug information is still being displayed.
2. Can I draw objects directly from my Teensy .ino program onto the display? For instance, could I draw a green rectangle on the display from the Teensy code? According to the Nextion Instruction Set, I should be able to send a command to the display like "draw 10,10,70,70,GREEN\xFF\xFF\xFF" but that didn't work.
Thanks for any help.
1. The button presses from the display show debug information on the terminal session. How do I disable the debug information? I've tried to #undef dbSerial (which is defined in the NexConfig.h file for debug output) in my Teensy .ino file and recompiled but that didn't work. The debug information is still being displayed.
2. Can I draw objects directly from my Teensy .ino program onto the display? For instance, could I draw a green rectangle on the display from the Teensy code? According to the Nextion Instruction Set, I should be able to send a command to the display like "draw 10,10,70,70,GREEN\xFF\xFF\xFF" but that didn't work.
Thanks for any help.