Shop OBEX P1 Docs P2 Docs Learn Events
seven segment displays from bean hitt spin example — Parallax Forums

seven segment displays from bean hitt spin example

SawmillerSawmiller Posts: 276
edited 2006-05-17 01:24 in Propeller 1
hi ppl, got some of those seven segment displays off bean
and made up a lil demo spin file...
works for me now, hope it works after i try to upload it tongue.gif
code is patched together from the DS1620 lib code and beans examples for the sx28

dan

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-05-16 03:03
    It seems like a lot of folks ended up with those HC4LED displays so I took a crack at it after seeing your code work.· What I've done is created a reusable object with useful methods: str, dec, hex, and bin.· I need to add comments before it gets posted to our object repository, but I thought I'd share and take feedback before closing it up.

    Update (16 MAY) : Object improved;·see below.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax

    Post Edited (Jon Williams (Parallax)) : 5/16/2006 6:41:30 PM GMT
  • BeanBean Posts: 8,129
    edited 2006-05-16 11:35
    I have posted my spin code for the display here:

    http://forums.parallax.com/showthread.php?p=586851

    Also here is an object in assembly that runs in another cog that will continuously update the HC4LED display to show the value of a spin variable.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com


    COMING SOON "SD DATA LOGGER" www.sddatalogger.com

    "I reject your reality, and substitute my own." Mythbusters


    Post Edited (Bean (Hitt Consulting)) : 5/16/2006 1:34:22 PM GMT
  • SawmillerSawmiller Posts: 276
    edited 2006-05-16 14:22
    most excellent...

    will study these both tonight and see how to really do it.

    thanks jon and bean..

    dan
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-05-16 18:45
    The first version of my HC4LED object was written after very little sleep the last few days, and a six-hour drive from Hollywood to Rocklin yesterday -- what a difference a good night's rest will make.

    I've added features and made improvements to the object; I have also added comments to clarify things, though the code is pretty simple.· Note that the start method changed a bit (to conform to·shiftio.shiftout) and I added a method that enables one to use the blanking pin on the display (the demo uses this).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • SawmillerSawmiller Posts: 276
    edited 2006-05-17 01:24
    wow..

    lots o diff functions in jons code, and speed is the name of the game in beans code

    excellent stuff to mess with, and char maps too [noparse]:)[/noparse]

    thanks again ,

    dan
Sign In or Register to comment.