Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 09:07 15 May 2024 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 and Micromite Plus Beta 23

     Page 1 of 5    
Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 10:50pm 18 Jul 2015
Copy link to clipboard 
Print this post

Hello all beta testers,

A new beta (B23) for both the standard Micromite (MX170) and the Micromite Plus (MX470) is ready for download from: http://geoffg.net/Downloads/Micromite/Micromite_4.7_Beta.zip

Both the MX170 and MX470 versions now use the same code base. This means that I can release both versions at the same time and both will be at the same version number. It also means that a bug fixed in one will be automatically fixed in the other , the downside is that a bug found in one is probably in both

Other changes in this version are:

- Fixed the issue "Error: Pin xx is in use" for both the IR and DISTANCE command.

- The CFunction support has been improved to allow LCD Drivers to be loaded as CFunctions. However, this will cause some CFunctions previously created by Peter (matherp) to crash with a MIPS exception - Peter plans to issue new versions that will work with this beta.

- For both the MX170 Micromite (MX170) and Micromite Plus (MX470) versions the editor output can be colour coded. The command is OPTION COLOURCODE ON - see page 30 of the "Micromite Manual" for the details.

- For the SSD1963 controller chip select (CS) is no longer required and should be connected to ground. The manual has been updated to reflect this. Note that the old CS pin (pin 22) on the 64-pin Micromite Plus will still be unavailable whenever MMBasic is configured for the SSD1963. This will be corrected in the next beta version.

- The large number only font has been renamed font #1 and the other fonts have been moved up. See page 17 of the "Micromite Advanced Features" manual for the new font numbers. This was done so that the same fonts will be on the same font numbers on both the standard MM and the MM+.

- A number of small changes have been made to both the standard and advanced manual so if something fails to work check the manual to see if it has changed. BTW I am still debating if the manuals should be split the way they are or combined into one huge (130 page) manual.

Don't forget that the log of reported bugs and suggestions can always be download from: http://geoffg.net/Downloads/Micromite/MMPlusIssues.txt. I will be active on this forum while I am away and I will update this list as issues are found and reported. However it will be late August - early Sept before I can act on them.

Geoff

Geoff Graham - http://geoffg.net
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 11:45pm 18 Jul 2015
Copy link to clipboard 
Print this post

Thanks Geoff,

I am pleased to see that the 170 is getting the same love as the MM+ and am particularly keen to try out the colour coded editor. I have always prefer working with the built in editor and that will be a great improvement.

I have to join the family for Sunday Lunch so can only re-flash my devices this afternoon, but thanks for giving me something more exciting to do to fill the void left by the cancelling of German Grand Prix.

Cheers, And thanks for all your hard work

Chris

http://caroper.blogspot.com/
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 03:15am 19 Jul 2015
Copy link to clipboard 
Print this post

I installed 4.7B23 onto the PIC32MX170 without issue but I did find that I had to change the settings in Tera Term in order to use coulorcode on.

By default I had White Text on a Black background, to switch the command in teraterm is:

Setup-->Window...
Under the Color heading
click Reverse

The Documentation only shows how to do it in Putty so the above may help other Tera Term users.

Now to get back to the fun....

Cheers
Chris
Edited by Chris Roper 2015-07-20
http://caroper.blogspot.com/
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 03:23am 19 Jul 2015
Copy link to clipboard 
Print this post

RE OPTION COLOURCODE ON

I have a similar issue with Putty on Linux,

ANSI Black text on a black background.

Some fiddling required, liking the colours otherwise

EDIT ADD:
Yes the manual does say, I my case I changed the ANSI Black colour value to white and all is visable. Yellow is ok too. I prefer a black background.


Cheers,
Anthony.Edited by ajkw 2015-07-20
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1421
Posted: 02:26pm 19 Jul 2015
Copy link to clipboard 
Print this post

Phenomenal!
Edited by CircuitGizmos 2015-07-21
Micromites and Maximites! - Beginning Maximite
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5923
Posted: 09:13pm 19 Jul 2015
Copy link to clipboard 
Print this post

While adding colour support to MMEdit's terminal, I discovered a bug/feature.

With COLOURCODE OFF
new line is 0D 0A

61 73 74 65 1B 5B 4B 1B 5B 31 3B 31 48 1B 5B 31 aste.[K.[1;1H.[1
3B 31 48 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B ;1H.[K...[K...[K
0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D ...[K...[K...[K.
0A 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A ..[K...[K...[K..
1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B .[K...[K...[K...
5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B [K...[K...[K...[
4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B K...[K...[K...[K
0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D 0A 1B 5B 4B 0D ...[K...[K...[K.
0A 1B 5B 31 3B 31 48 1B 5B 32 34 3B 35 36 48 4C ..[1;1H.[24;56HL
6E 3A 20 31 20 20 43 6F 6C 3A 20 31 20 20 20 20 n: 1 Col: 1

With COLOURCODE ON
new line is 0D 0A 0D

6D 0D 0A 0D 1B 5B 4B 1B 5B 33 30 6D 0D 0A 0D 1B m....[K.[30m....
5B 4B 1B 5B 33 30 6D 0D 0A 0D 1B 5B 4B 1B 5B 33 [K.[30m....[K.[3
30 6D 0D 0A 0D 1B 5B 4B 1B 5B 33 30 6D 0D 0A 0D 0m....[K.[30m...
1B 5B 4B 1B 5B 33 30 6D 0D 0A 0D 1B 5B 4B 1B 5B .[K.[30m....[K.[
33 30 6D 0D 0A 0D 1B 5B 4B 1B 5B 33 30 6D 0D 0A 30m....[K.[30m..
0D 1B 5B 4B 1B 5B 33 30 6D 0D 0A 0D 1B 5B 4B 1B ..[K.[30m....[K.
5B 33 30 6D 0D 0A 0D 1B 5B 4B 1B 5B 33 30 6D 0D [30m....[K.[30m.
0A 0D 1B 5B 4B 1B 5B 33 30 6D 0D 0A 0D 1B 5B 4B ...[K.[30m....[K
1B 5B 33 30 6D 0D 0A 0D 1B 5B 4B 1B 5B 33 30 6D .[30m....[K.[30m
0D 0A 0D 1B 5B 4B 1B 5B 33 30 6D 0D 0A 0D 1B 5B ....[K.[30m....[

Tested with beta23 on a '170

It doesn't cause any problems with TeraTerm but I am not sure about other editors. MMEdit will be fixed in the next release but I will say (again) that TeraTerm is a much better terminal and colour will make that even more so.

Jim

VK7JH
MMedit   MMBasic Help
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9075
Posted: 09:23pm 19 Jul 2015
Copy link to clipboard 
Print this post

Text display does not want to work for me on an SPI screen, ONCE YOU TRY TO CHANGE THE FONT:








Note that text is fine with the first line of code @ 0,50, but as soon as you try to alter the font scale or select another font, then subsequent text commands produce no output at all. Cls does not fix the problem. Text colour selection does not work either from this point on(although it is fine UNTIL you issue a FONT command).

EDIT: This is on the 170 chip - I have not yet tried this on the 470.

EDIT: Font 2 works OK, but Font 1 does not, so it only seems to affect Font 1.....Edited by Grogster 2015-07-21
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8601
Posted: 09:40pm 19 Jul 2015
Copy link to clipboard 
Print this post

Grogster

Font 1 on both the MX170 and MX470 is now the 32x50 numbers only font. Font 2 on the MX170 is the only font with a full character set. Fonts 3-6 on the MX470 are also full fonts but not available on the MX170.

This is a change from earlier betas so that the same font (1 & 2) has the same number on both chips. Font 1 will output the space character for any none number.

Edited by matherp 2015-07-21
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9075
Posted: 09:59pm 19 Jul 2015
Copy link to clipboard 
Print this post

Ahhhhhh - I understand.
Missed that change in the latest manual revision....

Touch(x) and touch(y) are not giving any results other then -1 when the panel is NOT being touched. As soon as you touch anywhere, the function never returns with an numbers at all. Remove your finger/stylus, and the function returns -1.





Am I doing something else wrong here?

To clarify: if you run this simple loop in the image, -1's start appearing. I would expect that, as the panel is not being touched. As soon as you touch the panel - anywhere - the -1's STOP coming, but there are no other numbers to represent the co-ordinates of the touch no matter what. Touching the panel has the effect of pausing the loop output for the duration of the touch.Edited by Grogster 2015-07-21
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5923
Posted: 10:05pm 19 Jul 2015
Copy link to clipboard 
Print this post

Touch is working OK here on a MX170.
.
' OPTION LCDPANEL ILI9341, RP, 4,5,6
' OPTION TOUCH 7,2
' GUI CALIBRATE
OPTION EXPLICIT
CONST DBlue = RGB(0, 0, 128) ' A dark blue colour
COLOUR RGB(GREEN), RGB(BLACK)
FONT 2, 3
cls
BOX 0, 0, MM.HRes-1, MM.VRes/2, 3, RGB(RED), DBlue
main:
DO
TEXT MM.HRes/2, MM.VRes/4, left$(TIME$,5), CM, 1, 1, RGB(CYAN), DBlue
TEXT MM.HRes/2, MM.VRes*3/4, DATE$, CM
IF TOUCH(X) <> -1 THEN ouch
LOOP
end

sub ouch
local tx,ty
tx=TOUCH(X)
ty=TOUCH(Y)
print tx,ty
box 0,280,239,39,1,rgb(black),rgb(black)
text 10,280,str$(tx)
text 120,280,str$(ty)
pause 100
end sub


Jim
VK7JH
MMedit   MMBasic Help
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9075
Posted: 10:21pm 19 Jul 2015
Copy link to clipboard 
Print this post

Hi Jim.

Just tried that code of yours, and I get a nice blue clock with red border and green date below, but the clock does not tick, and touching the panel does nothing.

QUESTION: Does the GUI CALIBRATE TOUCH HAVE to complete successfully before these functions will work? No matter what I do, the touch calibration fails. I can touch the targets as part of the calibration and that works fine, but the MM forever reports that calibration failed.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5923
Posted: 10:31pm 19 Jul 2015
Copy link to clipboard 
Print this post

Clock doesn't appear to tick because the seconds aren't displayed...

If the calibrate doesn't complete I think you have a problem.
Can you do a GUI TEST TOUCH?

I had problems initially but it was my error - I had the TOUCH T_CS pin, T_IRQ pin back to front. The Touch instructions appeared on the screen for a few seconds and then disappeared.


Jim
VK7JH
MMedit   MMBasic Help
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 11:02pm 19 Jul 2015
Copy link to clipboard 
Print this post

  Grogster said  QUESTION: Does the GUI CALIBRATE TOUCH HAVE to complete successfully before these functions will work? No matter what I do, the touch calibration fails. I can touch the targets as part of the calibration and that works fine, but the MM forever reports that calibration failed.

Yes, you can use touch even if the calibration produced a warning. The firmware does a check and if the error is greater than 8 pixels it will complain but it will still try to work.
Geoff Graham - http://geoffg.net
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 11:41pm 19 Jul 2015
Copy link to clipboard 
Print this post

@ Grogster
Probably a silly question but are you using a stylus and touching the targets accurately.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9075
Posted: 12:22am 20 Jul 2015
Copy link to clipboard 
Print this post

@ Jim - GUI TEST TOUCH results in no display at all - blank screen. This is in direct conflict with my 1963 parallel display on the MM+, which worked a treat.

OPTION TOUCH 15,17 is the command used to setup the touch, pin15 is T_CS on the display, and pin17 is T_IRQ on the display.

@ Geoff - Even with the warning in that accuracy is >8 pixels out, could that prevent the touch from working?

@ palcal - using finger. I don't have a stylus yet, but have a couple coming.

The screen I am trying to use is this one here on eBay, and would seem to be compatible. Touch controller is XPT2046 which is most common, and used on just about all LCD modules from small to big for the touch.

EDIT:

%$@#!%$%$*(^^%!%%$!!!

My mistake everyone - all for the sake of one stupid wire!

I had misconnected the T_CLK line to one-pin away from where it should have been, so the touch side of things was never getting a clock line.

Curses!

All working now - funny how you need to wire up correctly for things to work.....

Edited by Grogster 2015-07-21
Smoke makes things work. When the smoke gets out, it stops!
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 04:26am 20 Jul 2015
Copy link to clipboard 
Print this post

The universal HEX is a great achievement

Some ideas from me for the future:

I wonder would it be feasible to consider transparent to the user built-in capabilities for RAM expansion by using external SPI RAM chips?

Also this is something that we discussed long time ago and I even had an early attempt doing this with the maximite. How about executing statements in parallel?

And the last thing: how about some built in capabilities for cloning and serialisation in case a program needs to be multiplied in a thousand devices, so the software generate a ready for upload hex file on to the SD card.

http://rittle.org

--------------
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1421
Posted: 08:22am 20 Jul 2015
Copy link to clipboard 
Print this post

I just updated a 470 board to beta23. When I type:

OPTION LCDPANEL ILI9341, RL, 13, 12, 11

I never get the prompt back.

Is this happening for anyone else?


Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1421
Posted: 08:24am 20 Jul 2015
Copy link to clipboard 
Print this post

Ugh. I wasn't typing "ILI9341" in CAPS.



Good now.Edited by CircuitGizmos 2015-07-21
Micromites and Maximites! - Beginning Maximite
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 11:51am 23 Jul 2015
Copy link to clipboard 
Print this post

Minor issue with OPTION COLOURCODE ON and the MX170

When in Mark Mode it is difficult to distinguish selected text from normal text.

Colour text reverts to Black but Black text is left unmarked. The differance is so subtle that it is easy to miss what is selected.

Would it be possible to have the selected block change colour, if inverting is no longer possible?

Cheers
Chris

http://caroper.blogspot.com/
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2870
Posted: 12:08pm 23 Jul 2015
Copy link to clipboard 
Print this post

Hi All,

Silly question...

If we now have a `universal HEX' why are there 2 HEX files in the distribution?

Also I found the gauge/meter demo's get corrupted due to changes in the FONT command.. So these will need to be modified.



Mick


Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
     Page 1 of 5    
Print this page
© JAQ Software 2024