27297 Parallax Inc, 27297 Datasheet - Page 49
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: 49 of 230
- Download datasheet (3Mb)
Taking it Further
Q: How could we modify the code to cause the LEDs to behave like airport runway
lights?
A: See below for one possible solution (Can you modify the loop to test at the top?)
Write Code like a Pro
In this experiment we use binary (%) notation quite frequently – this is a handy tool
when our programming editor (like the BASIC Stamp IDE) allows it. This bit of code,
for example:
… is far easier to
When dealing with binary inputs (e.g., buttons or switches) or outputs (e.g., a bank
of LEDs), use binary notation to help yourself (and others) “see” the operation of the
code.
Reset:
' -----[ Program Code ]------------------------------------------------
Main:
LEDsDirs = %11111111
LEDs = %00000001
DO
LOOP UNTIL (LEDs = %10000000)
GOTO Main
LOOP UNTIL (LEDs = %10000000)
LOOP UNTIL (LEDs = 128)
PAUSE DelayTm
LEDs = LEDs << 1
visualize
than:
' make LEDs outputs
' start with right LED on
' on-time for lit LED
' shift LED left
' test for last LED
' test for last LED
' test for last LED
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: