beautypg.com

Elenco Snap Circuits SnapMicro I Deluxe ® User Manual

Page 32

background image

31

This program is 2 bytes less and much

easier to read with less jumping and only

one label. Of course the comments will

help later when you edit this for different

applications.

It is a good practice to build up a library of

small sub routines and then use them in

different applications when they are

needed. The more information stored in

the library the easier it will be to import

and use these routines later.

If you run a simulation of this program it

will take a long time for the b0 variable to

reach 127. Open the variable panel,

pause the program, and double click on

the b0 to change it to 115.

Restart the program and watch the b0

variable loop between 110 and 127. In

simulation the sound command does not

play the frequency. Instead a ‘Beep’ is

produced to let you know a sound

command was executed. After down

loading the real sounds will be heard.

Save program to your library then

download it to play special effect sound.

Close file.

1.Pause & Start Button

2.Double Click b0
3.Edit to 115

This manual is related to the following products: