Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Tick Clock - the Code — Parallax Forums

PENGUIN ROBOT Tick Clock - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-09-21 10:49 in Robotics
As promised, here's the code to TickClock.

penguin_tiny_timer.bpx

humanoido

' ---------------------- Descriptions -------------------------------
'
' This program turns Penguin robot into an accurate timer without
' any clock or components add-on. It has code to accurately do
' timing. This is made possible by the new faster Penguin board which
' has more cycles per unit time. The code has all the tiny frills -
' lights, sound, and timing! Exactly, it's penguin_tiny_timer.
'
' It does tick-clock. Ticks like a watch, clocks like a digital
' timer. Uses the segment display and special sound echo subroutine
' to generate a bonified tick sound.
'
' The Penguin Tiny Timer is a ten second digital watch with display,
' audible start beep, and watch "second" ticking sounds. It counts 0
' to 9 then 0, for ten seconds.
'
' To operate, switch on Penguin, hear startup tone, and the display
' will show a zero. This is the starter. Counting of time begins
' exactly when the 0 appears.
'
' The number on the display indicates the elapsed seconds. After
' the nine digit, a zero indicates the ten second mark and the
' program ends with an audible mark. Press reset to start.
'
' Note, the statements in this program contribute to timing.

Comments

  • quickster47quickster47 Posts: 35
    edited 2007-09-21 10:49
    humanoido,

    As with all your Penguin software applications, this one delivers as promised and is a great piece of coding work.

    Thanks again for making it available.

    Carl
Sign In or Register to comment.