![]() |
Forum Index : Microcontroller and PC projects : Micromite V5.04.09 Beta 19
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
Paul_L Guru ![]() Joined: 03/03/2016 Location: United StatesPosts: 769 |
Awwww shucks, why'd you do that. This thing with the Limies vs the Yanks is fun! |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
@geoff Does the allowance of either COLOUR or COLOR consume two 'tokens' or just one? |
||||
Lou![]() Senior Member ![]() Joined: 01/02/2014 Location: United StatesPosts: 229 |
@Paul_L Yea, I was having fun too !! ![]() ![]() CaptainBoing, do you have anymore stuff like the Revocation of Indepence ? (Independence ?) And thanks to Geoff, you started all this way back with the Maximite !! Was that 2010 - 2011 ?? Lou Microcontrollers - the other white meat |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Two tokens. Geoff Graham - http://geoffg.net |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
Not really. I remembered it from way back and just googled it. I do have a collection of Business/Management laws that might amuse... I dare you to go through the whole list without saying "Isn't that right!?" Business laws I kept some other links but I think they are so far out of the rules of the forum ![]() |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
So they could be parsed to the same token at save time? And that would then "autocorrect" the syntax to a single spelling. If that frees up a token, then it might be worth it. Microblocks. Build with logic. |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
Hi Geoff In this days I hanve tried USB/I2C on my PC with Win10 and it is all OK. Now I'm trying with oldPC with Win7 (where I was doing test with MM and MMX) but now it does not recognize COM port. Is there a new driver to install? Thanks Antonio |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
http://geoffg.net/Downloads/Micromite/Micromite_V5.04.09_Beta.zip This fixes the USB/I2C issue reported in another thread plus the SELECT CASE issue when using a negative constant. It also includes the other changes introduced in previous betas. For example, the fix for issues with corrupted 5" displays, the ability to use display drivers written in BASIC, STATIC variables, etc. If no more issues are discovered over the next few weeks I will turn this into a final release. Geoff Morning/Evening Geoff. Does this fix the VAL() wrinkle detailed here ? and... chancing my arm a bit, did you get time to look at the variable save thingy? I realise this latter could be quite a big leap, beyond the scope of a beta. all the best h |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Yes, the VAL() wrinkle (as you so eloquently describe it) is (or should be) fixed in his release. Increasing the variable save space is a much bigger challenge - and not conquered as yet. Geoff Geoff Graham - http://geoffg.net |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
ta |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
Hi Geoff Solved on Win7 and tried on linux/arm with minicom for hours... ok Thank Antonio |
||||
astro1 Regular Member ![]() Joined: 26/06/2016 Location: AustraliaPosts: 53 |
Having a problem with touch, stopped working after 'play wav' (always returns - 1) . Was using beta 17, tried beta 19 and 5.4.8 as well, on a mmplus100. Size of wav file played is 45KB (8bit/16khz/stereo) or 11KB (8bit/8khz/mono). Touch recovers after power cycle or 'cpu restart'. Did try without click pin assigned on option touch. No problems with further 'play wav' commands. <edit> 'play tone' works fine with touch. <edit 2> play wav works OK on extreme 5.0415 > option list OPTION AUTORUN ON OPTION LCDPANEL SSD1963_4, LANDSCAPE, 48, 6 OPTION TOUCH 1, 40, 39 OPTION SDCARD 47 OPTION RTC 67, 66 ' code do print touch(x) print touch(y) if touch(x) > 100 play wav "am.wav" loop |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Hmm, OK, this is something that I will have to test. I have added it to the list and will get back to you but it will take some time. Geoff Geoff Graham - http://geoffg.net |
||||
PicFan Senior Member ![]() Joined: 18/03/2014 Location: AustriaPosts: 133 |
Hello ! I have a little problem with "STATIC-Command": V5.04.09 Beta 19 sub testStatic() static a1, b1, c1 a1 = b1 * c1 end sub ERROR: Funktion or array B1 not declared ! sub testStatic() static a1 static b1 static c1 a1 = b1 * c1 end sub This version works well. local a1,b1,c1 or DIM a1,b1,c1 works also well. |
||||
PicFan Senior Member ![]() Joined: 18/03/2014 Location: AustriaPosts: 133 |
I have a little problem with "STATIC-Command": V5.04.09 Beta 19 sub testStatic() static a1, b1, c1 a1 = b1 * c1 end sub ERROR: Funktion or array B1 not declared ! sub testStatic() static a1 static b1 static c1 a1 = b1 * c1 end sub This version works well. local a1,b1,c1 or DIM a1,b1,c1 works also well. Micromite plus ! |
||||
Frank N. Furter Guru ![]() Joined: 28/05/2012 Location: GermanyPosts: 949 |
Is it possible that's now a problem with OPTION EXPLICIT and DIM? When I try "DIM D01, D02, D03" I get an error "Error: Variable type not specified". When I try "Dim D01: Dim D02: Dim D03 I get also the same error... "Dim D01 As Integer: Dim D02 As Integer: Dim D03 As INTEGER" works but "DIM D01, D02, D03 As Integer" produce also "Error: Variable type not specified"??? ( "DIM Nbr, Incr, Total" from the V5.04.08 manual - page 36 - generate also "Error: Variable type not specified"...) Frank |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
@Frank, Tested your examples on an MMX and an MM+, both running 5.04.08 and I do not see any error, with or without OPTION EXPLICIT used. I entered NEW and CLEAR before running each test. The version 5.04.08 is the 27 Dec 2017 release. Edit: added: Loaded 5.04.09 Beta 19 into a Peter Mather 470 backpack board and retested - no errors found Edit: added: Further to picfan's post re static, MMBasic picks up the first argument in a single line multi argument statement but does not pick up subsequent arguments - see below Option explicit Dim b1,b2,b3 Sub teststatic() Static a1 Static a2,a3 a1 = a1 + 1 a2 = a2 + 2 a3 = a3 + 3 b1 = a1 b2 = a2 b3 = a3 End Sub teststatic Print b1,b2,b3 teststatic Print b1,b2,b3 teststatic Print b1,b2,b3 > run [8] a3 = a3 + 3 Error: Function or array A3 not declared > If you change the line static a2,a3 to a two line statement like static a2 static a3 it all works as it should. panky ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Frank N. Furter Guru ![]() Joined: 28/05/2012 Location: GermanyPosts: 949 |
@Panky: I tested it with the "normal" Micromite (it was flashed with 5.04.09 Beta 3) - now I flashed it again with 5.04.09 Beta 19 - still the same problem!!! I get always "Error: Variable type not specified" - it works only for me when I use "Dim XXX As XXX" separate for all variables... Frank |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10315 |
"as XXX" only refers to the previous argument in the list use: DIM INTEGER a,b,c or DIM FLOAT x,y,z to set multiple arguments Dim a as integer,b as integer also works |
||||
Frank N. Furter Guru ![]() Joined: 28/05/2012 Location: GermanyPosts: 949 |
Hi Peter, thanks! Now it works! I was irritated by the example on page 36 (I think this example is wrong). I have not received the error "Error": Variable not declared" but always "Error: Variable type not specified" on the DIM line... Now I think it should be "DIM INTEGER" Nbr, Incr, Total" in the example are called..... Frank |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |