Set the audio playback volume. Volume level can be set from 0 (minimum) to 7 (maximum).
If the vol command is not used in the program, the volume defaults to the maximum (7).
|
Code Example |
Meaning |
|
vol=5 |
Set the audio playback volume to level 5. |
|
vol=M0 |
Set the audio playback volume to the value stored in M0. |
When setting the volume level equal to a register, the upper most bit in the register will be ignored.
For example, if you set vol=M2 and M2 contains 15 (1111b), then the volume will be set to 7 (0111b).