Badge: a menu system!
Seairth
Posts: 2,474
As I mentioned, I have written a menu object for the new Parallax Badge. Let's jump right into it!
Key Features:
With that in mind, here is a video of it in action and the source code:
Key Features:
- Menu is organized as an easily configurable tree that can go up to 8 levels deep and 16 items per node
- Items are grouped into pages (4 items per page), navigable via prev/next buttons
- Items can be submenus or endpoints (i.e. an action that the top level object will execute)
- OSH button is the "back" button (navigate one level up the menu tree)
With that in mind, here is a video of it in action and the source code:
Comments
Ken Gracey
Does the badge have a 64K EEPROM? It would be nice to be able to load fonts and bitmaps to the upper 32K if it does.
It does. One of the standard demos stores contacts in the upper EEPROM so they're safe when trying other code.
You are correct. This version uses DAT instead of VAR, so that it can be safely used by multiple objects. I also added a method for waiting on a single key press. And a little bit of code comments. The main functionality is unchanged though.
I could cut P0 (RCTv), but I don't know what that would do to the charging circuit.
May save for later hacking. Wish I had the time to do an IR receiver board with the EMIC2 on it. That would have been cool!
J
Looking forward to seeing photos!
Seems Seairth and you have some pretty interesting stuff to show. ☺