All Projects / Display / Binary Counter
Binary Counter
FEATURED!
0 votes
Sign In to add your vote
DOWNLOAD NOW!
DIFFICULTY
DESCRIPTION
This program implements a 3-bit binary counter in LEDs.

Input 1: Button
Output A: LED
Output B: LED
Output C: LED

As long as the button is held down, the program counts from 0 to 7 (and then repeats), with a 1 second delay in between each count. The value of the counter is displayed on three LEDs, with the lowest bit on Output A and highest on Output C.

This a translation of this exercise: http://rooseveltcs.org/courses/intro-to-cs/assignments/#assign11
THE CODE
Setup
Main Program
WHAT YOU NEED
1:
Button

2:

3:

4:

5:

A:
LED

B:
LED

C:
LED

D:

E:

CREDITS
Built by
Andy Davidson
Posted by
Andy Davidson
Derived from
Binary Counter
Views
3633
Downloads
367