Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Basic Counter - the Code — Parallax Forums

PENGUIN ROBOT Basic Counter - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-11-28 04:28 in Robotics
Title: Penguin Basic Counter
Code Name: penguin_basic_counter.bpx
Purpose: Counts 0 to 9


This is a basic single digit counter for Penguin robot.
It silently counts from 0 to 9 and ends by turning off
the display. Reset to repeat.

This program is ultra compact, with only 2 declarations,
and 2 lines in the main code.

There's now 6 programs in the counting code series, good
for many applications requiring timing and counting,
in the lab or otherwise. Code can be adapted, modified,
embedded, or run individually.

humanoido
humanoido said...

Programs in the time/count series:
penguin_brain_timer.bpx (counts up to one minute)
penguin_rocket_launcher (count down one minute!)
penguin_continuous_counter.bpx (counts 1 to 9 then 0 and repeats a thousand times)
penguin_counting_eye.bpx (an eye to count the first 10 people)
penguin_tiny_timer.bpx (ten second counter with display & ticking sound)
penguin_basic_counter.bpx (counts 0 to 9 silently)
Post Edited (humanoido) : 11/28/2007 12:20:28 PM GMT
Sign In or Register to comment.