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:
menu_x
menu_yco-ordinates on the screen to draw the menu at
menu_width
menu_heightthe background rectangle of a menu can be set to any size
backcolourcolour of the background rectangle
forecolourfont colour drawn over the menu rectangle
menubar_highlightcolour 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

2 Comments


ok so it is more like monkeys with no crayons discovering pigment medium and making marks on caves??? Or producing Picassso without fully fledged DNA?

Post a Comment

whos.amung.us

Copyright © 2009 .Nerd Club All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive Supported by Blogger Templates.