|
|
| Author |
Message |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 02 January 2009, 20:26 PM Post subject: hierarchical menu interface code |
|
|
Hello
Does any have or use a hierarchical menu system to use in ZBasic for displaying on an LCD. I have used Tinymenu and just found Micro Menu, both in c... which I am looking at interfacing with the zx24n.
Just want to make sure Iḿ not doing things in a round about way.
Thanks
Neil
|
|
| Back to top |
|
 |
cerickson
Joined: 20 May 2008
Posts: 30
Location: Waikoloa Village, HI, USA
|
|
Posted: 03 January 2009, 1:15 AM Post subject: |
|
|
I have one I have been working on for one of my projects that uses a 4-line serial LCD and four pushbuttons.
I make no claim to programming greatness but I will send you a copy of what I have created if you are interested.
-Christopher Erickson
|
|
| Back to top |
|
 |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 03 January 2009, 7:37 AM Post subject: |
|
|
Hi Christopher
Yes I would be interested, thanks for sharing...
Regards
Neil
|
|
| Back to top |
|
 |
cerickson
Joined: 20 May 2008
Posts: 30
Location: Waikoloa Village, HI, USA
|
|
Posted: 03 January 2009, 20:35 PM Post subject: |
|
|
Here is a copy of my dual electrical generator controller project. It is about 50% complete. It has a menu system in it that I have been working to make modular and semi-universal. It uses a 4-line serial LCD and four pushbuttons.
Any and all help and suggestions welcome!
-Christopher Erickson
| Description: |
| Dual electrical generator controller project. About 50 percent complete. |
|
 Download |
| Filename: |
CKE Dual Gen controller.zip |
| Filesize: |
53.19 KB |
| Downloaded: |
1827 Time(s) |
|
|
| Back to top |
|
 |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 04 January 2009, 14:01 PM Post subject: |
|
|
Thanks Christopher
Its an education for me to see how other people do things, I may have some more questions/comments once I understand things
Id written a simular DS1305 module also... but Iḿ sure I can improve it... havnt tested it yet.
Neil
|
|
| Back to top |
|
 |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2493
Location: Portland, OR
|
|
Posted: 04 January 2009, 16:40 PM Post subject: |
|
|
| ndudman wrote: | | I had not realized that you can define functions/sub and leave off the byval or byref... and was supprised that the default if not specified was byref... | This is clearly stated in the ZBasic Reference Manual section describing Subroutine definition: | ZBasic Reference Manual wrote: | | The default passing convention, if neither ByVal nor ByRef is specified, is ByRef. |
I suspect that some prefer to omit the ByRef/ByVal just to reduce typing. It is unfortunate, I think, that the default defined by VB6 is ByRef. It would be better if the default were ByVal in my opinion.
|
|
| Back to top |
|
 |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 04 January 2009, 23:22 PM Post subject: |
|
|
I didnt mean to say that its not clearly documented anywhere... sorry if it read like that... Id simply skipped over, or not seen that part when I was reading the manual... which is well and clearly written. Not meant as a criticism at all, but my own mistake.
Yes my thoughts as well that default would be better byVal, but Im pleased I noticed it finally in the clearly written docs.
Neil
|
|
| Back to top |
|
 |
|