Parallax 28036 Скачать руководство пользователя страница 3

Copyright © Parallax Inc.   

 

Page 3 of 5 

BASIC Stamp HomeWork Board 

 

' {$STAMP BS2} 
' {$PBASIC 2.5} 
 
PAUSE 500 

 ' Brief wait at start 

 
DO 
  DEBUG HOME, "Phototransistor 1: ", BIN1 IN0, CR, 
              "Phototransistor 2: ", BIN1 IN1 
  PAUSE 250  ' Wait 1/4 second 
LOOP 

Note: 

When this program is run the BASIC Stamp Debug window will automatically open. 

 

 

Отзывы: