Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:34 10 May 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 graphic tests

Author Message
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 10:00pm 24 Apr 2019
Copy link to clipboard 
Print this post

Hi all

here is a program to test the different graphical functions of the PIC32 and STM32 processors

2019-04-25_075632_test_graphic.zip

it is a set of modules (24 maximum) usable or not depending on the version of MM
the software detects the type of processor, the fonts loaded and the presence or absence of files for the "Sprite" function

You can choose to perform all tests or only some tests, as well as the number of repetitions for each test.
You can also run the tests in a permanent loop

this program is open to everyone and everyone can make the changes they want
It can mostly report operating bugs
you can also correct my English spelling errors.

in the zipped file, you will also find 2 files used by the Sprites test program. You must copy them to the SD card


prog tested on
- Pic32Mx170
- Pic32mx470
- Pic32mz2048
- Stm32H746
- Stm32L476RG

prog not tested on
- Pi Cromite
- Stm32F4

screens
- LCD 1.3" ST7789 240x240
- LCD 2,8" ILI9341 SPI 240x320
- LCD 5" ST9369 16b 800x480



Edited by goc30 2019-04-26
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1111
Posted: 11:34pm 24 Apr 2019
Copy link to clipboard 
Print this post

@goc30

Excellent program goc30, it ran perfectly on an E100 running 5.05.02 with an SSD1963 9" LCD.

This would make a great test program to use if a person wants to ensure a graphics screen is working properly.

Thanks for sharing.

Doug.

PS. 24.539 seconds for 100 iteration run on the E100.


... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 12:01am 25 Apr 2019
Copy link to clipboard 
Print this post

thank panky

update
prog tested on
- Pic32Mx170
- Pic32mx470
- Pic32mz2048
- Stm32H746 MM v5.05.06
- Stm32L476RG
- Explorer 100 MM v5.05.02 (by panky)

prog not tested on
- Pi Cromite
- Stm32F4

screens
- LCD 1.3" ST7789 240x240
- LCD 2,8" ILI9341 SPI 240x320
- LCD 5" SSD1963 16b 800x480
- LCD 9" SSD1963 (by panky)
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 07:27am 25 Apr 2019
Copy link to clipboard 
Print this post

Thanks for the very useful program. Can you check the zip file please. I see 2 .bmp files but not the required .png file for the sprite tests
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 11:58am 25 Apr 2019
Copy link to clipboard 
Print this post

  matherp said   Thanks for the very useful program. Can you check the zip file please. I see 2 .bmp files but not the required .png file for the sprite tests


yes, sorry
2019-04-25_215818_logom4_png.zip
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2139
Posted: 12:10pm 25 Apr 2019
Copy link to clipboard 
Print this post

ooh! this is useful. Cheers
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 06:06pm 25 Apr 2019
Copy link to clipboard 
Print this post

Minor tweak to the program to cater for the Armmite F4

2019-04-26_040040_test_graf_v01c.zip

and here are the results on the direct attach ILI9341 (16-bit parallel)

Watch the video


 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 03:10am 26 Apr 2019
Copy link to clipboard 
Print this post

new version (v1.2a)

2019-04-26_130618_test_graf_v1_2a.zip


--- Updates ----
25/04/19
add tmtyptest to make script
add script minimum (type mx170) (test "M")
add pixel function
add news functions
rounded rectangles
circles 1 pixel not filled and
circle rnd pixel width not filled



in first question, if you put "M" it make an script who can work on all the micromite familly. This script can be use to compare results with all procs.
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 12:00pm 26 Apr 2019
Copy link to clipboard 
Print this post

Hi Peter
Thank for tests

  matherp said   Minor tweak to the program to cater for the Armmite F4



I did not see the difference with my version
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 12:10pm 26 Apr 2019
Copy link to clipboard 
Print this post

  Quote  I did not see the difference with my version


Aaaagh!!!! I've overwritten it somehow.

The changes were trivial - Add ARMmite F4 as a new device type

MM.DEVICE$ gives "ARMmite F407"

It can do all graphics tests (bezier, arcs etc.) except sprites
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 12:46pm 26 Apr 2019
Copy link to clipboard 
Print this post

Ok

2019-04-26_225238_test_graf_v1_2b.zip Edited by goc30 2019-04-27
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 04:10pm 26 Apr 2019
Copy link to clipboard 
Print this post

New version

2019-04-27_021040_test_graf_v1_2c.zip

26/04/19 v1.2cv
add proc stm32F407 and f4 "generic" (with type4 script)
add "unknown proc" with script "test minimum"
update pixel function'

 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 04:23pm 26 Apr 2019
Copy link to clipboard 
Print this post

Still not quite correct for Armmite F4. It would be much easier for you if you had one

The Armmite F4 has 7 valid fonts loaded
It does not support sprites

Basically exactly the same as the H7 minus sprites
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 04:32pm 26 Apr 2019
Copy link to clipboard 
Print this post


  matherp said   Still not quite correct for Armmite F4. It would be much easier for you if you had one

The Armmite F4 has 7 valid fonts loaded
It does not support sprites

Basically exactly the same as the H7 minus sprites


here update "F4"
is device="ARMmite F407" ?? (I put this text in my devices array)



for "fonts", i see my fault

2019-04-27_024302_test_graf_v1_2c3.zip
Edited by goc30 2019-04-28
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 03:33am 27 Apr 2019
Copy link to clipboard 
Print this post

new version

2019-04-27_133330_test_grafv1_2d.zip

27/04/19 v1.2d'
add database test
update: in minimum test "cls" function is not tested


you can send-me file result (here or by PM). I put it on my database and show results
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 03:46am 27 Apr 2019
Copy link to clipboard 
Print this post

hi peter

question:
how can I know in program what type of driver is used for lcdpanel
like txt$="option lcdpanel"
rep txt$="ILI9341" or "ILI9341,L,1,2"
idem for sd and touch

thank
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 10:15am 27 Apr 2019
Copy link to clipboard 
Print this post

  Quote  how can I know in program what type of driver is used for lcdpanel
like txt$="option lcdpanel"


You can't at the moment, The issue is lack of function slots (max 128) on some implementations but let me see if I can think of a way round it.

Same answer for CPU speed in your other post.
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 12:33pm 27 Apr 2019
Copy link to clipboard 
Print this post

  matherp said  
Same answer for CPU speed in your other post.


ok
I make an idea: you can create an "MM.config$(5)" (1 for cpu speed, 1 for lcd, 1 for touch, 1 for sdcard
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 01:31am 28 Apr 2019
Copy link to clipboard 
Print this post

New version

v1.2e
2019-04-28_141250_test_graf_v1_2e.zip


27/04/19 v1.2e'
add MM.info$
update save function



I add version "lite" for mmx170 or minimals test
2019-04-28_113036_test_graf_v1_2e_lite.zip Edited by goc30 2019-04-29
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 01:58pm 29 Apr 2019
Copy link to clipboard 
Print this post

update v1.02f

2019-04-29_235603_test_graf_v1_02f.zip


29/04/19 v1.2f
add test if no lcd panel driver installed
update test for MZ proc without lcd driver buffered or no rd signal (not sprit test)
some minors bugs

 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025