27220 Parallax Inc, 27220 Datasheet - Page 70

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
EXPERIMENT #8: A SINGLE-DIGIT COUNTER
The purpose of this experiment is to get us started with 7-segment LED displays by
creating a simple, single-digit decimal counter.
Building the Circuit
Program: SW21-EX08-7-Seg_Counter.BS2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Program Description ]---------------------------------------------
'
' Displays decimal digits (0 - 9) on a 7-Segment display connected to
' P0-P7.
' -----[ I/O Definitions ]-------------------------------------------------
Segs
SegsDirs
This program will work, unmodified, on any BS2-family module.
VAR
VAR
OUTL
DIRL
' Segments on P0 - P7
' DIRS for segments

Related parts for 27220