Shop OBEX P1 Docs P2 Docs Learn Events
Badge: a menu system! — Parallax Forums

Badge: a menu system!

SeairthSeairth Posts: 2,474
edited 2015-09-11 03:04 in Propeller 1
As I mentioned, I have written a menu object for the new Parallax Badge. Let's jump right into it!

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

  • The youtube link is opening as a file download. Try posting the link to the video instead of BB code.
  • SeairthSeairth Posts: 2,474
    edited 2015-09-11 03:06
    deleted (original post fixed. maybe.)
  • Ran the code! The menu system work fine, but I think the button code has probably changed a bit though I didn't verify that for certain. Did it?

    Ken Gracey
  • That's looking great Seairth.

    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.
  • Duane Degn wrote: »
    That's looking great Seairth.

    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.

  • Ken Gracey wrote: »
    Ran the code! The menu system work fine, but I think the button code has probably changed a bit though I didn't verify that for certain. Did it?

    Ken Gracey

    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.
  • PublisonPublison Posts: 12,366
    edited 2015-09-17 23:21
    I was trying to get an EMIC2 running on the badge, but we really only have P11 available. EMIC2 needs SIN and SOUT.

    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!

  • Jim, cut the v egg, then your direct to p0 from the proto area. Add 3 - 10k series resistor if your emic is 5v, and your good to go!
  • Thanks M. I'll look at that in the morning.

    J
  • Cool. Have fun if your still helping out at OSH 2015.

    Looking forward to seeing photos!

    Seems Seairth and you have some pretty interesting stuff to show. ☺
Sign In or Register to comment.