beautypg.com

Elenco Snap Circuits SnapMicro I Deluxe ® User Manual

Page 30

background image

29

Edit the basic program to use the

variable b0.

Start the simulation by clicking on

the simulate button or pressing

and F5 Keys at the same

time.

Open the variables panel by clicking

on the >> button.

As the program runs the variable b0

will change in value from 0 to 3. This

value is used to change the song to

be played.


Check the program length by clicking on the ‘syntax check’

button

and the success window should open.

This program uses only 18 bytes out of 256 or 7% of the total

memory. By using a loop we have saved over 5% of the

memory. Good programming will use the minimum amount of

memory and accomplish the same task as longer programs.

This manual is related to the following products: