-
Hi - The screen layouts (shown on the "old" GitHub pages) show the page 11 layout as having a large area defined as b4, and the usual buttons 1-3 at the bottom. However, the latest hasp version has for page 11 a button b4 top left, and a slider b5 next to it, then a blank area and the usual b1-b3 at the bottom. (although I haven't found documentation of the pages on the new Github.) I was hoping to display some text in the large area, but it looks like it is not accessable. Assuming it would be "b6", writing text to it returns a 0x1a code. Is it possible to access this area, and if so, how? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
After some browsing around (discord, etc.) I'm concluding that the change where the big area of page 11 is now not defined was due to memory needed elsewhere. But this is just a guess so far. I was hoping to use this big space to put some detailed weather forecasts. |
Beta Was this translation helpful? Give feedback.
-
You are 100% correct on that - the big empty space was left there to allow experimenting with manual object placement in a manner similar to the blueprints that place an icon on the screen. The project is stone out of memory, the existing solution uses literally every byte of RAM and won't compile on current versions of the Nextion editor without freeing up yet even more RAM elsewhere in the project. At some point I'll push out some blueprints that demonstrate how one can use p11, if you want to poke around at things check out the |
Beta Was this translation helpful? Give feedback.
-
FWIW, here's the TCL code I used to get the above display. Simplified TCL (I left out some details), but you should be able to see what the code is doing w.r.t the xstr command without knowing TCL.
|
Beta Was this translation helpful? Give feedback.
You are 100% correct on that - the big empty space was left there to allow experimenting with manual object placement in a manner similar to the blueprints that place an icon on the screen. The project is stone out of memory, the existing solution uses literally every byte of RAM and won't compile on current versions of the Nextion editor without freeing up yet even more RAM elsewhere in the project.
At some point I'll push out some blueprints that demonstrate how one can use p11, if you want to poke around at things check out the
xstr
command in the Nextion Instruction Set reference.