Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:44 02 Aug 2025 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : Micromite V5.04.09 Beta 19

     Page 2 of 5    
Author Message
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 09:57am 01 May 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2944
Posted: 02:32pm 01 May 2018
Copy link to clipboard 
Print this post

@geoff

Does the allowance of either COLOUR or COLOR consume two 'tokens' or just one?
 
Lou

Senior Member

Joined: 01/02/2014
Location: United States
Posts: 229
Posted: 03:18pm 01 May 2018
Copy link to clipboard 
Print this post

@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: Australia
Posts: 3292
Posted: 03:36pm 01 May 2018
Copy link to clipboard 
Print this post

  WhiteWizzard said  Does the allowance of either COLOUR or COLOR consume two 'tokens' or just one?

Two tokens.
Geoff Graham - http://geoffg.net
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 04:55pm 01 May 2018
Copy link to clipboard 
Print this post

  Lou said   @Paul_L
CaptainBoing, do you have anymore stuff like the Revocation of Indepence ? (Independence ?)


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 Edited by CaptainBoing 2018-05-03
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 07:09pm 01 May 2018
Copy link to clipboard 
Print this post

  Geoffg said  
  WhiteWizzard said  Does the allowance of either COLOUR or COLOR consume two 'tokens' or just one?

Two tokens.

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: Italy
Posts: 313
Posted: 05:37am 02 May 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2170
Posted: 06:26am 02 May 2018
Copy link to clipboard 
Print this post

  Geoffg said   Another beta version of the Micromite firmware (beta 19) for anyone who would like to experiment:
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: Australia
Posts: 3292
Posted: 11:17am 02 May 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2170
Posted: 12:53pm 02 May 2018
Copy link to clipboard 
Print this post

ta
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 05:37pm 02 May 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 53
Posted: 01:27am 06 May 2018
Copy link to clipboard 
Print this post

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"
loopEdited by astro1 2018-05-07
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 10:15am 06 May 2018
Copy link to clipboard 
Print this post

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: Austria
Posts: 133
Posted: 09:00am 13 May 2018
Copy link to clipboard 
Print this post

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: Austria
Posts: 133
Posted: 07:18pm 15 May 2018
Copy link to clipboard 
Print this post

  PicFan said   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.


Micromite plus !
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 06:44pm 17 May 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1114
Posted: 12:38am 18 May 2018
Copy link to clipboard 
Print this post

@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
Edited by panky 2018-05-19
... 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: Germany
Posts: 949
Posted: 07:21am 18 May 2018
Copy link to clipboard 
Print this post

@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 Kingdom
Posts: 10315
Posted: 07:32am 18 May 2018
Copy link to clipboard 
Print this post

"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 worksEdited by matherp 2018-05-19
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 949
Posted: 09:34am 18 May 2018
Copy link to clipboard 
Print this post

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
 
     Page 2 of 5    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025