rolfi@tisco.no
Member
Hi,
Trying to use play-command on a 08M2, but became a little confused.
Manual 2 says:
PLAY pin, tune (all non-8 pin parts)
PLAY pin, tune, LED_mask (M2 parts only)
PLAY tune, LED_option (8 pin devices only)
Using a 08M, alt. 3 obviously applies, and it works. Not so obvious with 08M2, however, as both alt. 2 and 3 applies. But alt. 2 gives an error msg from the compiler, which leaves me with alt 3. However, 'play b1,0' creates this err. msg:
Error: use song number 0 - 3 only
So I try 'play 1,0' ... and Bingo: Jingle bells, - no diode blinking. The problem seems to be that the compiler rejects tune as a variable, in both PE5 and 6. Is this a bug?
Trying to use play-command on a 08M2, but became a little confused.
Manual 2 says:
PLAY pin, tune (all non-8 pin parts)
PLAY pin, tune, LED_mask (M2 parts only)
PLAY tune, LED_option (8 pin devices only)
Using a 08M, alt. 3 obviously applies, and it works. Not so obvious with 08M2, however, as both alt. 2 and 3 applies. But alt. 2 gives an error msg from the compiler, which leaves me with alt 3. However, 'play b1,0' creates this err. msg:
Error: use song number 0 - 3 only
So I try 'play 1,0' ... and Bingo: Jingle bells, - no diode blinking. The problem seems to be that the compiler rejects tune as a variable, in both PE5 and 6. Is this a bug?