Elenco Snap Circuits SnapMicro ® I Standard User Manual

Page 19

Advertising
background image

18

The Play command has the following functions (Syntax)

`

Function:

Play an internal tune on output pin 2.

PLAY tune, LED

The

tune

constant (0 - 3) specifies

which tune to play as follows;
0 - Happy Birthday
1 - Jingle Bells
2 - Silent Night
3 - Rudolph the Red Nosed Reindeer


LED

is a constant (0 -3) that specifies

outputs that flash as the tune is being
played as follows;
0 - No outputs
1 - Output 0 flashes on and off
2 - Output 4 flashes on and off
3 - Output 0 and 4 flash alternately

The

tune

and

LED

constants can be changed in the edit

box at the bottom of the program editor screen when the
play box is active. After the tune plays, there should be a

few seconds of delay and then the tune should play again. Return to the previous menu by clicking the
curved arrow button

. Now click the delay button and use the previous technique to add the wait box.

Advertising