Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. ' {$STAMP BS2}
  2. ' {$PBASIC 2.5}
  3.  
  4. LedSpeaker PIN 5
  5. counter VAR Byte
  6. DEBUG CLS, "LED flashing..."
  7.  
  8. FOR counter = 1 TO 30
  9. TOGGLE LedSpeaker
  10. PAUSE 250
  11. NEXT
  12.  
  13. DEBUG CR, "Speaker playing tone"
  14. FREQOUT LedSpeaker, 2000, 3000
  15. DEBUG CR, "All done."
  16.  
  17. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement