PDA

View Full Version : Help with second tone sending



scott99
03-23-2010, 01:42 AM
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

Franklin
03-23-2010, 02:09 AM
Add an IF or CASE statement to choose which commands to run depending on the settings you have. (switch, button, etc.)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen