EasyManuals Logo

Parallax Boe-Bot User Manual

Parallax Boe-Bot
360 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #64 background imageLoading...
Page #64 background image
Page 50 · Robotics with the Boe-Bot
Programs that Control the LED Test Circuits
The HIGH and LOW commands can be used to make the BASIC Stamp connect an LED
alternately to Vdd and Vss. The
Pin argument is a number between 0 and 15 that tells
the BASIC Stamp which I/O pin to connect to Vdd or Vss.
HIGH Pin
LOW
Pin
For example, if you use the command
HIGH 13
it tells the BASIC Stamp to connect I/O pin P13 to Vdd, which turns the LED on.
Likewise, if you use the command
LOW 13
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
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.
' 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
HIGH 13
PAUSE 500
LOW 13
PAUSE 500
LOOP

Table of Contents

Other manuals for Parallax Boe-Bot

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Parallax Boe-Bot and is the answer not in the manual?

Parallax Boe-Bot Specifications

General IconGeneral
BrandParallax
ModelBoe-Bot
CategoryRobotics
LanguageEnglish