28125 Parallax Inc, 28125 Datasheet - Page 64

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
Programs that Control the LED Test Circuits
The
alternately to Vdd and Vss. The
the BASIC Stamp which I/O pin to connect to Vdd or Vss.
For example, if you use the command
it tells the BASIC Stamp to connect I/O pin P13 to Vdd, which turns the LED on.
Likewise, if you use the command
it tells the BASIC Stamp to connect I/O pin P13 to Vss, which turns the LED off. Let’s
try this out.
Example Program: HighLowLed.bs2
' Robotics with the Boe-Bot – HighLowLed.bs2
' Turn the LED connected to P13 on/off once every second.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "The LED connected to Pin 13 is blinking!"
DO
LOOP
HIGH 13
PAUSE 500
LOW 13
PAUSE 500
HIGH
HIGH
LOW
HIGH 13
LOW 13
Reconnect power to your board.
Enter, save, and run HighLowLed.bs2.
Verify that the LED circuit connected to P13 is turning on and off, once every
second.
and
Pin
Pin
LOW
commands can be used to make the BASIC Stamp connect an LED
Pin
argument is a number between 0 and 15 that tells

Related parts for 28125