View previous topic :: View next topic |
Author |
Message |
Genaro
Joined: 16 Sep 2011 Posts: 7 Location: Mexico,D.F.
|
Posted: Thu Sep 29, 2011 9:53 pm Post subject: |
|
|
Hello friends!
Bascom program already installed 2.0.7.1 and as I do in plugin? |
|
Back to top |
|
|
Netzman
Joined: 25 Nov 2005 Posts: 127 Location: Graz
|
Posted: Thu Sep 29, 2011 11:26 pm Post subject: |
|
|
Hi,
The installer creates a start menue entry, it's not designed as a plugin for Bascom.
I'm working on a new setup routine, because the Click-Once from Visual Studio Installer has some limitations...
Best regards _________________ LCD Menu | Proportional Fonts |
|
Back to top |
|
|
etak
Joined: 10 Oct 2011 Posts: 19
|
Posted: Mon Oct 10, 2011 7:33 pm Post subject: GLCD? |
|
|
Hello Netzman!
A great thing, what you did!
Do you mybe think off doing the same tool for a 128x64 graphical LCD to?
That would be a great tool, that coul then easely be includded in Bascom!
Best regards
Andrej |
|
Back to top |
|
|
Netzman
Joined: 25 Nov 2005 Posts: 127 Location: Graz
|
Posted: Wed Dec 07, 2011 1:00 pm Post subject: |
|
|
Hi,
I've updated the designer, you find the download link on my wiki (the link is in the first post).
Changes:
* fixed a major bug when using Function-entries
* LCD width was set to 0 if the default value was changed
* new setup routine (if you have the old version installed, you need to unistall it by hand. The start menu entries also change)
* automatic updates (searches on startup, shows a notification if a new version is available and installs it)
I've planned to extend the menu for graphical LCDs, but I didnt found the time to do that (and a graphical LCD to test it would be practical too )...
Best regards _________________ LCD Menu | Proportional Fonts |
|
Back to top |
|
|
kulamario
Joined: 29 Nov 2012 Posts: 5
|
Posted: Thu Nov 29, 2012 5:22 pm Post subject: |
|
|
Hello All
I wanted to know how to operate this program
I mean how to add functions For instance light a LED or show temperature
What to create a menu that I do not have a problem but do not know where to add the code
and what to change and where in the LCD Menu Designer
I'd asked for some example programs in the code |
|
Back to top |
|
|
kulamario
Joined: 29 Nov 2012 Posts: 5
|
Posted: Sat Dec 01, 2012 8:49 am Post subject: |
|
|
can anyone help me? |
|
Back to top |
|
|
Netzman
Joined: 25 Nov 2005 Posts: 127 Location: Graz
|
Posted: Thu Dec 06, 2012 1:56 pm Post subject: |
|
|
Hello,
Basically, there are two ways to interface your program with the menu: using variables and menu function calls.
You can use them both to control a LED for instance.
Controlling the LED using the menu functions (assuming the LED is connected on Porta.0):
Code: | ...
Do
Menu
If Enter_pressed = 1 ' The enter switch has been pressed
Tempbyte = Menu_enter()
Select Case Tempbyte
Case 2
Porta.0 = 0
Case 3
Porta.0 = 1
End Select
End If
...
Loop |
In the menu, set up two entries of the type "Function" set 2, resp. 3 as ID. Now you can switch the LED on or off with two separate menu entries.
With a variable, this could look like:
Code: | ...
Dim Led_toggle As Byte
...
Do
Menu
...
If Led_toggle = 0 Then
Porta.0 = 0
Else
Porta.0 = 1
End If
Loop |
Here you have to set up an editable bit value in the menu using your program variable Led_toggle.
In the menu, you can toggle the value of this variable between On and Off.
In the main loop, you set the output according to that value.
Displaying the Temperature:
Code: |
...
Dim Temperature As Single
...
Do
Menu
...
Temperature = whatever
Menu_check_update ' I recommend to call this function using a timer, not every time in the main loop. Have a look at Sample 2.
Loop |
This works the other way round like before, a value you set in your program is displayed in the menu.
Create an entry of type "Value" (Read Only) using the program variable Temperature.
Now, when the entry is selected in the menu, it shows the current value of your variable Temperature (the displayed value gets updated every time you call the function Menu_check_update).
I hope this helps, regards _________________ LCD Menu | Proportional Fonts |
|
Back to top |
|
|
Dave
Joined: 05 Feb 2005 Posts: 314 Location: OR
|
Posted: Mon Dec 24, 2012 7:27 pm Post subject: |
|
|
Netzman,
Very nice work, Thank you!
I/m going to try to apply this to some remote controls that use the Nokia 3310 displays.
Thank again,
Dave |
|
Back to top |
|
|
Netzman
Joined: 25 Nov 2005 Posts: 127 Location: Graz
|
Posted: Thu May 22, 2014 9:22 pm Post subject: |
|
|
Update: 1.4
Enhancements:
* Menu Tree Drag and Drop function
* Automatic Check & File copy of Bascom sources in the data file location
* Toolbar button to locate the Bascom source files
Bug fixes:
* Save function stopped saving the embedded Menu Designer data
* Update Component was broken, so you have to manually download & install V.1.4, sorry for that
* It was possible to enter longer strings than the max string length, following memory was overwritten
* R23 is used in the timer ISR, but was not saved
You can download it here: http://mat.midlight.eu/wiki/index.php/Simple_LCD_Menu_Main_Page#Download
Best regards _________________ LCD Menu | Proportional Fonts |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri May 23, 2014 8:56 pm Post subject: |
|
|
great to see that you keep supporting it. Well done! _________________ Mark |
|
Back to top |
|
|
erbamec
Joined: 04 Sep 2013 Posts: 11
|
Posted: Tue Jun 10, 2014 6:34 pm Post subject: |
|
|
This is realy an amazing application!
Sadly I don't understand how to use it yet...
I would like to create a menu structure with several layers which can write values, call functions while being operated by 4 buttons (enter, back, up, down)
On the wiki page I've read about the functions of the lcd designer but I don't know where to start and how to set up the menu structure.
Can anyone point out the right direction for me?
Thanks! |
|
Back to top |
|
|
erbamec
Joined: 04 Sep 2013 Posts: 11
|
Posted: Fri Jun 20, 2014 6:57 am Post subject: |
|
|
Anyone? |
|
Back to top |
|
|
Netzman
Joined: 25 Nov 2005 Posts: 127 Location: Graz
|
Posted: Sat Jun 21, 2014 2:59 pm Post subject: |
|
|
Hi,
please excuse my late answer.
The menu is designed to be operated by 3 buttons, enter, backward and forward. To go back in the menu structure, a special menu entry is available ("Back", "Exit"). But I like the idea having a forth button for this, I'll note that for the next version!
To start, you could have a look at sample 2 (real hardware) resp. 3 (simulation), if you want to enter/display values. Starting from the samples, you can design your own application.
In the Designer, the menu structure is displayed as a tree. Each sub-branch represents a deeper level in the menu hierarchy, you can create as many levels as you want. In the menu implenmentation, you can browse through each entry in a level in a circular way: using forward and backward as you'd expect it, going back on the first entry leads to the last one, vice versa going forward on the last one leads to the first entry. The enter button is used to access a sub-level, modify values or execute a function.
Hope this helps, don't mind asking more questions!
regards _________________ LCD Menu | Proportional Fonts |
|
Back to top |
|
|
erbamec
Joined: 04 Sep 2013 Posts: 11
|
Posted: Fri Jun 27, 2014 5:22 pm Post subject: |
|
|
Thanks for your clarifying answer!
The hardware design is already finished and put together so I'm going to work with four buttons. I'll have to make up a menu stucture by my self, which is a good learning curve .
I will keep the designer in mind for future projects.
Thanks! |
|
Back to top |
|
|
tronicgr
Joined: 22 Apr 2009 Posts: 17 Location: USA, San Diego
|
Posted: Fri Jun 27, 2014 7:25 pm Post subject: |
|
|
Hi Netzman,
Thanks for your great work on this UI for LCD screens. When I was designing my application I tried to integrate it to my code, but it was somewhat hard to adapt it for real time use, at least for my needs. But it gave me a pretty good idea of what I would have to make.
My LCD menu which configures a 6DOf motion controller, with 1000 updates per second, needed something more tight. I fire the LCD update only 10-20 times per second to leave the rest of the prosessing power for the position control of the motors. The code I made is totally different in structure than yours but it looks similar.
Quick view:
http://youtu.be/v3YX8NY3iUk?t=3m32s
Using the LCD menu for realtime configuration:
https://www.youtube.com/watch?v=n8unuWm33ZQ
I'll sure use it for something else that is not so realtime
Thanks
Thanos _________________ Visit my blog about 6DOF controller electronics
http://motionsim.blogspot.com/ |
|
Back to top |
|
|
|