27297 Parallax Inc, 27297 Datasheet - Page 51
27297
Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet
1.27297.pdf
(230 pages)
Specifications of 27297
Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 51 of 230
- Download datasheet (3Mb)
Program: SW21-EX05-LED_Graph.BS2:
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Program Description ]---------------------------------------------
'
' Displays a linear (bar) or dot graph using eight LEDs.
' will require modifications (to the constants LoScale and HiScale) when
' running on the BS2Sx, BS2p, or BS2px.
' -----[ I/O Definitions ]-------------------------------------------------
LEDs
LEDsDirs
Pot
' -----[ Constants ]-------------------------------------------------------
DotGraf
BarGraf
GraphMode
IsOn
IsOff
LoScale
HiScale
Span
Scale
' -----[ Variables ]-------------------------------------------------------
rawVal
grafVal
hiBit
newBar
4. Using white wire, connect socket B16 to the wiper (center terminal) of the
5. Using black wire, connect the Vss (ground) rail to the bottom terminal of the
10K potentiometer.
10K potentiometer.
VAR
VAR
PIN
CON
CON
CON
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
OUTL
DIRL
15
0
1
BarGraf
1
0
10
695
HiScale - LoScale
$FFFF / Span
Word
Byte
Byte
Byte
' LEDs on P0 - P7
' DIRS control for LEDs
' Pot circuit IO
' define graph types
' define graph mode
' raw low reading
' raw high reading
' between lo-to-hi
' scale factor 0..255
' raw value from pot
' graph value
' highest lighted bit
' workspace for bar graph
This program
Related parts for 27297
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: