Android Example 7 Segment LED Digital Clock

Discussion in 'Tutorials & Examples' started by Johan Schoeman, Apr 12, 2015.

  1. Johan Schoeman

    Johan Schoeman Expert Licensed User

    Attached project simulates a 7 segment LED digital clock. No libs other than the B4A core lib are required.
    You can also try this analog clock here

    DigitalClock.png
     

    Attached Files:

    Last edited: Jul 7, 2015
  2. Johan Schoeman

    Johan Schoeman Expert Licensed User

    It adds the blinking dots as separators between the hours and minutes as well as between the minutes and seconds
    You can also try this analog clock here

    Have you ever noticed which one of the 7 segments appears the most in the 7 segment LED numbers when they cycle from 0 to 9?

    DigitalClockWithDots.png
     

    Attached Files:

    Last edited: Jul 7, 2015
  3. DonManfred

    DonManfred Expert Licensed User

    No i have not....
    If i should guess i would give my vote intuitiv to

    ***
    * *
    ***
    * *
    ***

    dont´know what the most one is.

    Tell me :)
     
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    My guess would be...
    ***
    * *
    ***
    * *
    ***
     
    Johan Schoeman likes this.
  5. BlueVision

    BlueVision Member Licensed User

    Thanks Johan, I searched for a simple way to integrate 7-segment-design into my app. It works perfectly for my needs. Really a nice job. Fast, efficient and without wasting ressources. Your coding and your name made it into the credits of my application. I integrated your idea and parts of your coding. Looks surprisingly good. A huge THANKS! from Berlin

    Andi
     
    Johan Schoeman and RandomCoder like this.
  6. ncc1701mda

    ncc1701mda Member Licensed User

    Ok.... stupid question I am sure... but - I am just now getting reacquainted with B4A and looking at your code - what I am trying to figure out is why the images appear arranged in a line and centered on the panel when run but in the designer they are not in those positions at all... ?? Thanks in advance...

    Mike
     
  7. Johan Schoeman

    Johan Schoeman Expert Licensed User

    I have just placed them randomly. The code in the Designer positions them correctly when you compile and run the project.

    If you "click" inside the designer code and then select "run" it will position them correctly in the Designer.
     
    lemonisdead likes this.
  8. ncc1701mda

    ncc1701mda Member Licensed User

    That is exactly what I was missing .... DOH! Thank you!

    Mike
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice