BoeBot

From RoboWiki
Revision as of 13:25, 11 December 2008 by Balogh (talk | contribs) (New page: Example 1: <source lang="Basic"> ' Robotics with the Boe-Bot - StartResetIndicator.bs2 ' Test the piezospeaker circuit. ' {$STAMP BS2} ' Stamp directive. ' {$PBASIC 2.5...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Example 1:

' Robotics with the Boe-Bot - StartResetIndicator.bs2
' Test the piezospeaker circuit.

' {$STAMP BS2}                   ' Stamp directive.
' {$PBASIC 2.5}                  ' PBASIC directive.

 DEBUG CLS, "Beep!!!"            ' Display while speaker beeps.
 FREQOUT 4, 2000, 3000           ' Signal program start/reset.

 DO                              ' DO...LOOP
  DEBUG CR, "Waiting for reset…" ' Display message
  PAUSE 500                      ' every 0.5 seconds
 LOOP                            ' until hardware reset.