Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:16 01 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 : Armmite text command at bottom of screen - bug?

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 05:54am 01 Jun 2020
Copy link to clipboard 
Print this post

So I'm playing with an Armmite F4 (STM32F407VET6, firmware version 5.051 as described in this topic) and I am seeing some perhaps undesireable behaviour with the 'text' command.

From the command line:
cls                    ' works fine
text 10,109,"test",,5  ' works fine
text 275,200,"test",,5 ' works fine, text vanishes off right edge
text 10,208,"test",,5  ' works fine, text at bottom of screen
text 50,209,"test",,5  ' oh no, text is completely gone!
text 50,220,"test",,5  ' hmmm, weird bits of text appearing at top of screen
text 50,230,"test",,5  ' different bits of weird text at top

for y = 100 to 250 : text 50,y,"test",,5 : next y  ' well now, ain't that interesting!

That last line should help figure out what is going on.

Note I'm only using font 5 because it is large and easier to see the effect. Other fonts behave the same.

Do other flavours of 'mite behave similarly?

Regards.
Visit Vegipete's *Mite Library for cool programs.
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1097
Posted: 06:10am 01 Jun 2020
Copy link to clipboard 
Print this post

Hi Vegipete

What size panel are you using?

I get the same with a 3.2" panel which is to be expected as the resolution is only 320 (H) * 240(V)

OK on a 7" display

Brian
Edited 2020-06-01 16:12 by Chopperp
ChopperP
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 04:52pm 01 Jun 2020
Copy link to clipboard 
Print this post

Quite right, I should have specified my panel size.

I'm testing with a 320x240 panel in landscape mode.

Here is an image of the result of the last (loop) command I gave above:


Try the command with bigger screens but adjust the end of the y-loop to be just off the bottom of the screen. My goal was to position text part way off the right and bottom edges of the screen. The right edge works fine. The bottom edge does not.

For completeness, I must test the top and left edges too...

Yes, top and left edges seem to work fine.

Note all these tests are with the default alignment of 'left/top'.
Visit Vegipete's *Mite Library for cool programs.
 
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