Fix melody reference docs.
This commit is contained in:
parent
5a1321c711
commit
b0fddd7e72
@ -7,7 +7,7 @@ Play a built in musical melody through pin ``P0`` of the @boardname@.
|
|||||||
This function only works on the @boardname@ and in some browsers.
|
This function only works on the @boardname@ and in some browsers.
|
||||||
|
|
||||||
```sig
|
```sig
|
||||||
music.playBuiltinMelody(Melodies.Entertainer)
|
music.beginMelody(music.builtInMelody(Melodies.Entertainer), MelodyOptions.Once)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
@ -19,7 +19,7 @@ music.playBuiltinMelody(Melodies.Entertainer)
|
|||||||
This example plays the ``Entertainer`` melody.
|
This example plays the ``Entertainer`` melody.
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
music.playBuiltinMelody(Melodies.Entertainer)
|
music.beginMelody(music.builtInMelody(Melodies.Entertainer), MelodyOptions.Once)
|
||||||
```
|
```
|
||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
Loading…
Reference in New Issue
Block a user