Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10240
Posted: 02:17pm 05 Jul 2020
Copy link to clipboard
Print this post
There are/will be a small number of simple syntax changes in V5.05.04 that you can code for now to ensure programs are future proof going forward
in V5.05.04b3a WS2812 renamed BITBANG WS2812 otherwise syntax the same FFT replaced by MATH FFT otherwise syntax the same TTS replaced by PLAY TTS otherwise syntax the same FONT 4 replaced by a 224 character 10x16 font - use FONT 3 for a font of the same size and with the same characters as font 4
from V5.05.04b3b onwards NUNCHUK replaced by WII NUNCHUK otherwise syntax the same. Note the NUNCHUK function is not affected. This will allow for a new, to-be-written, command WII CLASSIC and a new function CLASSIC()
You can allow for these changes easily using MM.INFO(VERSION) e.g.
if mm.info(version) < 5.0504 then TTS "Something to say" else PLAY TTS "Somthing to say" endif
In addition 2 commands in V5.05.03 that weren't included in the 5.05.03 user manual have been removed BITMAP command - removed PLAY SPEECH command - removed
I don't anticipate any further changes that will affect how existing programs run other than bug fixes. Of course there is/will be new functionality in V5.05.04 that doesn't exist in V5.05.03 and if you use this it should be made clear in any programs you distribute
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4038
Posted: 02:46pm 05 Jul 2020
Copy link to clipboard
Print this post
Just a nudge but is the (V5.05.04) CMM2 tokenizer happy with the TTS when missing PLAY before it? E.g. does it just in effect convert it to PLAY TTS?
John Edited 2020-07-06 00:47 by JohnS
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10240
Posted: 02:56pm 05 Jul 2020
Copy link to clipboard
Print this post
Only PLAY is tokenised. This is one of the beauties of an interpreter. On 5.05.04 the old version would give an error if executed but because it isn't there is no issue - and visa versa of course Edited 2020-07-06 00:57 by matherp