Shop OBEX P1 Docs P2 Docs Learn Events
Help with second tone sending — Parallax Forums

Help with second tone sending

scott99scott99 Posts: 14
edited 2010-03-22 19:09 in BASIC Stamp
Hi, My name is Scott, building a clock drive for a telescope. I want to use the bs2 for my frequency controller (using a synchronous drive motor). The program works for the proper sidereal speed but·I need to add a different frequency for lunar tracking.

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

DEBUG "tone sending"
DO

FREQOUT 12, 60000*10000, 1193

LOOP

How do I write the program to have a push button switch to a different frequency output, either on the same pin or a different one?

Desperate in Chicago,
Scott

Comments

  • FranklinFranklin Posts: 4,747
    edited 2010-03-22 19:09
    Add an IF or CASE statement to choose which commands to run depending on the settings you have. (switch, button, etc.)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
Sign In or Register to comment.