27404 Parallax Inc, 27404 Datasheet - Page 66

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 27404

Accessory Type
Hobby and Education
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Figure 2-5 Pushbutton Circuit added to LED and Piezospeaker
Parts List
(1) Jumper wire
(1) LED - red
(1) 1 Resistor - 470 Ω (yellow-violet-brown)
(1) 1 Resistor - 10 kΩ (brown-black-orange)
A
Now the name
pushbutton state the I/O pin senses.
conditional statements that might need to make decisions based on the state of the
pushbutton. In other words, you can use
just as you would use
actually made based on the value stored in the BASIC Stamps
is where the 1 or 0 sensed by the I/O pin is actually stored. Nonetheless, using a
symbol like
The next example program should display a series of zeros while the pushbutton on the
breadboard is not pressed, and a series of ones while it is pressed. Figure 2-6 shows an
example.
PIN
directive can also be used for P6:
pBSense
pbSense
pBSense
just makes programs more convenient to write and easier to read.
DEBUG BIN1 IN6
PIN
can be used in
6
pBSense
and
DEBUG BIN1 pbSense
IF IN6 = ...
DEBUG
can also be used in
commands to display whichever
Either way, the decision is
IN6
or
IF...THEN
IF pbSense = ...
input register, which
and other
PIN

Related parts for 27404