2
QVGA progress
Posted by Chris
on
Sunday, November 29, 2009
It seemed pretty obvious, we'd got a rectangle drawn on screen, we'd got some characters drawn on the screen, the next logical step was to put some characters on top of a rectangle. Drawn correctly, a few lines of characters drawn over a rectangle could look just like a menu.
How about that then?
A few tweaks to the current PIC code, and we're now able to draw menus, with highlighted items. In fact, we've pretty much built a menu-drawing "library", allowing menus to be drawn anywhere on the screen, any size, with any number of entries (as many as the screen will allow at least).
We've also fixed the bug when drawing characters, so they all have lovely nice outlines around them and can be drawn on any coloured background.
To date, we've got a procedure which takes the following variables and draws a working menu:
When it's hooked up to eeprom, we'll be able to add in stuff like "what to do when a menu item is selected". But that will have to wait - as soon as the Flash eeprom is hooked up, we've got bitmaps to draw.......
UPDATE: Check out our YouTube video showing the menu in action:
http://www.youtube.com/watch?v=sBe5wHwwa0c
How about that then?
A few tweaks to the current PIC code, and we're now able to draw menus, with highlighted items. In fact, we've pretty much built a menu-drawing "library", allowing menus to be drawn anywhere on the screen, any size, with any number of entries (as many as the screen will allow at least).
We've also fixed the bug when drawing characters, so they all have lovely nice outlines around them and can be drawn on any coloured background.
To date, we've got a procedure which takes the following variables and draws a working menu:
menu_x | |
menu_y | co-ordinates on the screen to draw the menu at |
menu_width | |
menu_height | the background rectangle of a menu can be set to any size |
backcolour | colour of the background rectangle |
forecolour | font colour drawn over the menu rectangle |
menubar_highlight | colour of the "stripe" to draw on the highlighted menu item |
When it's hooked up to eeprom, we'll be able to add in stuff like "what to do when a menu item is selected". But that will have to wait - as soon as the Flash eeprom is hooked up, we've got bitmaps to draw.......
UPDATE: Check out our YouTube video showing the menu in action:
http://www.youtube.com/watch?v=sBe5wHwwa0c