Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Continuous Timer - the Code — Parallax Forums

PENGUIN ROBOT Continuous Timer - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-10-26 05:58 in Robotics
While working on a big graphical compass program
that functions in real time on the debug screen for
Penguin robot, he will be allowed some time off to rest
his servos.

In between compass code development, more code is being
developed, in the clock and timing series of programs.
You remember Penguin Tiny Timer (Tick-Clock), code
name penguin_tiny_timer.bpx? It's the Penguin ten
second counter timer with display & ticking sound. Now
introducing the next complimentary code.

humanoido

Penguin Continuous Counter
Code Name: penguin_continuous_counter.bpx
Purpose: Counts 1 to 9 then 0 and repeats a thousand times


' This is a single digit counter - uses digits one through nine and
' zero. The counting sequence is continuous and repeats 1000 times.
' The sequence counts 1 through 9 and then zero. The zero is
' representative of ten in the complete sequence.

' The counter is a good utility that's drop in code to other
' applications or can be used as a stand alone sequential counter.
' The code only takes up 4% EEPROM space and consumes a tiny
' register and a half.
Sign In or Register to comment.