Message |
|
Just want to add a notice to my message from yesterday.
If I start a new project in Designer, it create the code, etc, with my selected display, encoder etc, but "forgets" the pin numbers I have entered.
But if I once again try to genereate code, with same selected hardware setup, but jus adjust the pin numbers to my vaules, then it works correct.
One way to workaraund this is to make it possible to use the save command with Ctrl-S.
|
|
|
So, I made new test's, and every time I do this the problem occure that the Designer "forget" my entered pin numbers.
I attach a zip-file to this message with a complete new project I made for test and showing my problem. It is made for a ESP32 and editor Arduino IDE 1.8.57.0
At the same time making this test project, I made a pdf-file with text and screendumps to describe what happends when, etc. I hope that gives you some clue's ...
Let me know if you need more info..
|
|
|
Ok. I'm using the Designer in my Windows computer, running Windows 11 Pro.
I'm using ESP32 and the Arduino Ide, the latent V1.8.xx.
Tomorrow afternoon I make a new check, to see more specific where and when this problem occur.
|
|
|
Hello
I'm using the latest version of the Designer program, and have some "issues" and questions. When running the "prepare diagnostics" I got following info.
tcMenu diagnostics - stream STABLE
TcMenuDesigner Version - 2.2.7
Plugin versions:
core-display - 2.2.7
core-remote - 2.2.7
core-themes - 2.2.7
Library versions:
tcMenu - 2.2.7
LiquidCrystalIO - 1.4.1
TaskManagerIO - 1.3.1
IoAbstraction - 2.1.1
Diagnostics END
1. Problem to enter values for pins in the "generte code" window
It means for example when I select a rotary encoder and enter my pins numbers, after generating the code so is it the old preset values there. I've tried to press Ctrl-S, exit the input pin fields with Tab or Enter but mostly it will not use my entered values. My solution have bin therefore to exit the Designer, open the the emf-file in NotePad++ and manually enter the correct numbers. After that I can open the file again in the Designer and create the code.
2. U8g2-display not in list
I have a display with SSD1327 driver and 128x128 pixels. It works perfect when I use the example file "PrintUTF8.ino" from U8g2 examples, and select U8G2_SSD1327_EA_W128128_F_SW_I2C .
But this choice do I not find in the list in the Designer. How should I proceed ?
If I select custom U8G2, then am I not able to select the pins for the display..
|
|
|
At Tuesday I downloaded the updated library and the new version of TcMenu Designer. To test I remake my testprogram, (MenuTest_5E_New), for new tests.
In the updated library I also notised an updated example program, esp32SimHub, and here I found new ways to set value to a "EditableLargeNumberMenuItem".
I tested 2 different calls, A/ setFromFloat() , and B/ setLargeNumberFromString().
For storing my value I used a float varaibel fRot with value 3.1.
With the A/ setFromFloat() my display was showing 3.0, and when using B/ setLargeNumberFromString() it was showing 3.9.
I found it very interesting to find the reason, (and of course to learn more from using C and C++), i find it after a couple of hours.
In the attached zip file "MenuTest_5E_New.zip" I have included a file "Comments_tcMenu_2022-02-17.pdf" where I explain what I found and my solving suggestions.
|
|
|
SO, I have made some more tests.
My focus this time is on point 2 - rendering AnalogItem.
When I add some theme, then it looks OK. To try find what is making the difference I included a theme and then afterward disable row by row. At the end I find two rows that make differense.
In the file *_menu.cpp, ( in my case "MenuTest_5E_menu.cpp"), is the function setupMenu(). If I add the following rows in the end of the function, then looks the rendering of AnalogItem OK.
The "magic" rows are
renderer.setTitleMode(BaseGraphicalRenderer::TITLE_FIRST_ROW);
renderer.setUseSliderForAnalog(false);
EXACTLY what they do have I not checked up, I just found that they make the display looks OK.[b]
|
|
|
After have away from this project some days, i made a new try yesterday. Onething I didn't try before, was to add a theme. It made a change to my point 2, so the Analog item was readable even when not having focus.
Later on this evening, I can give more details about what I was doing...
|
|
|
Ok! It was very late yesterday so I missed some details. Today I have started from scratch, made a new mini project that shows my problems.
The main goal with this, is that I try to understand how to work with tcMenu, so I can use some project afterwards.
In this test project would I like to set start vaules to the menu variables at start up, and even readout the setted vaules.
This resulting project, including 2 readme textfiles, have I compressed into attached "MenuTest_5E" zipfile, even including pictures showing the display.
In the file 'ReadMe -Faultvalues.txt' I have described what is done and referensing pictures.
In clear text here, is as follows:
1. Readout value from a EditableLargeNumberMenuItem with Callback shows under some condition wrong value,
2. AnalogItem looks "funny" when it not has Focus,
3. When setting a EditableLargeNumberMenuItem, it don't seems to get the decimals, setting 3.1 gives result 3.0 at display,
For the last point #3, I belive there is a better way to set the value, but this way was the only one that worked for me.
A fourth point could be a question, how can I notice when display has "timeout'ed", and is there a way to change this timeout time in my code ?
My programming knowledge is a little bit limitated, so I is open suggestions for better code writing.
I look forward to any answers..
|
|
|
Hello
I'm try to learn how tcMenu works by doing some examples.
The problem I have right now is following.
I try to set a value to a EditableLargeNumberMenuItem, in my case called menuRotation.
When I set the value 3.2 with menuRotation.setLargeNumberFromString() I got 3.0 on the display.
I try also to set the value 5.5 to a AnalogMenuItem, in my case called menuAnalogItem with menuAnalogItem.setFromFloatingPointValue( 5.5 ) I get 5.0 on my display.
Why is it like this??
I'm testing on a ESP32 and I using the latest version Arduino IDE, tcMenu and tcMenu Designer as well.
|
|
|
|
|