Author |
Message |
08/03/2022 20:23:02
|
#1
|
GoranP
Joined: Feb 5, 2022
Messages: 9
Offline
|
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..
|
|
|
09/03/2022 16:10:47
|
#2
|
davetcc
Joined: Jan 19, 2019
Messages: 686
Offline
|
For 1 - I'll check into that and do some testing myself, thanks for reporting. I'll try exiting fields in different ways and ensure the values are saved. There are quite a few automated UI tests around this but they nearly always simulate using the mouse.
For 2 - See the U8G2 plugin docs, when you use custom, then you generate the variable in your own sketch code, and just tell the plugin what name you've used. https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/tcmenu-plugins/u8g2-renderer-plugin/#manual-configuration
|
|
|
09/03/2022 21:22:08
|
#3
|
davetcc
Joined: Jan 19, 2019
Messages: 686
Offline
|
I can't recreate the situation for 1. What platform are you using the designer on, and is there a particular setup that it doesn't work for?
|
|
|
09/03/2022 21:50:00
|
#4
|
GoranP
Joined: Feb 5, 2022
Messages: 9
Offline
|
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.
|
|
|
10/03/2022 20:08:44
|
#5
|
GoranP
Joined: Feb 5, 2022
Messages: 9
Offline
|
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..
Filename |
Test_Designer_2.zip |
Download
|
Description |
No description given |
Filesize |
1213 Kbytes
|
Downloaded: |
378 time(s) |
|
|
|
11/03/2022 18:39:15
|
#6
|
GoranP
Joined: Feb 5, 2022
Messages: 9
Offline
|
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.
|
|
|
15/03/2022 08:50:58
|
#7
|
davetcc
Joined: Jan 19, 2019
Messages: 686
Offline
|
Thanks for this, I've not been around for a few days. I'll try and do some more testing soon and feedback here.
|
|
|
19/03/2022 09:19:20
|
#8
|
davetcc
Joined: Jan 19, 2019
Messages: 686
Offline
|
I've found the bug. It was actually quite subtle and difficult to track down.
What happened is that when any plugin was changed, there was code to try and default any new properties that were added, but it ended up defaulting them all. I've added a check that will prevent re-defaulting if the property has changed in any way whatsoever.
|
|
|
19/03/2022 09:23:13
|
#9
|
davetcc
Joined: Jan 19, 2019
Messages: 686
Offline
|
Thanks again for helping out with such detailed fault reports, it really helped me to track down the problem.
|
|
|
|