# Microcontroller GUI

Status
Not open for further replies.

#### hgboy

##### New Member
Can anyone point me to any tutorials on creating graphic interfaces for a pic microcontroller and a graphic lcd? Basically I would like to implement a drop down style menu, with push buttons to navigate through the thing to change graphic layouts and control brightness and contrast.

#### jimmythefool

##### New Member
Can anyone point me to any tutorials on creating graphic interfaces for a pic microcontroller and a graphic lcd? Basically I would like to implement a drop down style menu, with push buttons to navigate through the thing to change graphic layouts and control brightness and contrast.

Thats not the easiest of projects to undertake. What language are you programming in?

Jim

mikroC pro.

#### jimmythefool

##### New Member
Is there no examples on the MicroElectronika site? I have a half-arsed one written in Basic, but its far from finished.

Jim

#### hgboy

##### New Member
there is a rudimentary design written in mikrobasic, but it basically uses button presses to toggle text on a graphic lcd, along with the appropriate devices on the ports. I understand how to do all of that, but I had something a little more complicated in mind. A navigable menu, that would use up/down keys and a selection key to choose highlighted options on the menu.

#### jimmythefool

##### New Member
Are you doing this on a EasyPic board? If so, you could be really flash, and use the touchscreen

I have meddled with this, and have chunks of it, in various states of completion, I need to sort through it all and try to put it altogether in one. Unfortunately, I'm short of time and motivation at the moment

Regards

Jim

#### AtomSoft

##### Well-Known Member
heh the thing you have to understand is a menu or GUI is totally different from project to project.

To create a sucessful GUI you must know what you want shown. The max visual space your screen/terminal has. Like im using a 132x132 lcd right now so i have to limit myself to the width and height. meaning...

if i have a font of 8x8pixels then 1 letter is 8x8 pixels so 132/8 = 16.5 rounded down its 16... so i can have a max of 16 characters from left to right and 1-16 lines.

Now the issue is your GUI is custom.... so only you know where to place text... as for making a control its simple as if button1 = pressed then do this if button2 = pressed then do that... use cases tho

Code:
select case Button
{
case 0:
//Button 0 pressed do this
this();
break;

case 1:
//Button 1 pressed do that
that();
break;
}

void this(void){
// this is "this" heh
}

void that(void){
//this is "that"
}

Status
Not open for further replies.

Replies
4
Views
741
Replies
2
Views
1K
Replies
11
Views
8K
Replies
5
Views
2K
Replies
0
Views
3K