Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:42 26 Nov 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 : New 4 inch LCD

     Page 5 of 12    
Author Message
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 828
Posted: 09:38am 19 Mar 2024
Copy link to clipboard 
Print this post

Peter,

yes, that's exactly the version I tried this morning.

I also had problems with the serial interface and often had to disconnect the Pico from the PC and reconnect it.
The RTC is permanently soldered and has not caused any problems so far...

Frank
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 10:43am 19 Mar 2024
Copy link to clipboard 
Print this post

Frank

I can't do any more testing until I get home but something sounds odd, is it possible your power supply and/or cable are giving problems?
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 10:54am 19 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Now I've got over my senior moment, USB keyboard, with LCD console ILI9481, stand alone is working well.
Couple of minor problems.
1) If I set console font to 2,4 or 7, when doing a "LIST" or "FILES" when the bottom of screen is reached, I'm getting "ERROR : Screen not configured" & the display immediately clears.
2) If I set font to 3, I only get this error when doing "FILES", but not while only directories are on screen, as soon as a couple of files are shown (which are wider than the screen, maybe) I get the error then.
3) If using font 2 & I do OPTION LIST when the bottom of screen is reached the screen clears, so the option list disappears.
Fonts 1 & 8 seem to be working fine, so I'm sticking with them for now. :-)
Otherwise everything else is looking good.
Unfortunately I don't have a RTC available to test out Frank's problem, my current setup is as per my previous post with OPTIONS LIST.
Regards Kevin.
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 828
Posted: 12:01pm 19 Mar 2024
Copy link to clipboard 
Print this post

Peter,

I cannot yet completely rule out a problem with the cable - but until today's update I had no problems with it...
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 12:14pm 19 Mar 2024
Copy link to clipboard 
Print this post

Kevin

Please try attached


PicoMiteUSB.zip
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 01:22pm 19 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Thanks very much, that has fixed most of the font problems, but item 2) is still present, but now includes fonts 2 & 4, however they are all behaving slightly differently, Font 2 gives me 3 screens from the "FILES" list before the error, Font 3 gives 4 screens before the error and Font 4 gives 7 screens before the error? listing a long file with these fonts is fine.
Item 3) is also still present and Font 4 now also does it, but it's just an annoyance really and presumably if I had fewer options, would not occur, I'm assuming it needs the "Hit any key..." when the options get to the bottom of the screen?
Regards Kevin.
Edited 2024-03-19 23:23 by Bleep
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 01:43pm 19 Mar 2024
Copy link to clipboard 
Print this post

3 is a limitation. When the bottom of the screen is reached then the "NOSCROLL" takes effect which clears the screen and starts again at the top. If the output happens to just fill the screen then you will end up with a blank screen. I have special cased the LIST command and the FILES command. I don't propose to also do this for the OPTION LIST command

2 is a limitation I have already identified in the FILES command and don't propose to fix
  Quote  If the last line of a page is too long for the screen then it will wrap and not leave space for the "Press ANY KEY" prompt. I can't see an easy way round this without more work than the problem merits.


Overall: console mode for a display which doesn't support reading will always be a compromise. Likewise, optimisations for SPI displays which do support reading come with similar compromises if the very slow scrolling is to be avoided.
Edited 2024-03-19 23:47 by matherp
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 02:16pm 19 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Ok thanks, I can always change font to prevent the problem, I'll probably always use Font 7 or 8 which seem to be ok, I was just testing all variations. :-)
Regards, Kevin.
Edited 2024-03-20 00:21 by Bleep
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 02:35pm 19 Mar 2024
Copy link to clipboard 
Print this post

Think I may have fixed FILES but Option list will remain as-is


PicoMiteUSB.zip
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 06:53pm 19 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Thanks very much for the update, "FILES" now working fine for all fonts.
However "LIST" now always scrolls 2 pages at a time, before displaying "Press any key..."
Sorry I Also missed that "FLASH LIST x" also gives the "ERROR : Screen not configured" as soon as the listing gets to the bottom of the screen. :-(
As far as the "OPTIONS LIST" is concerned, that's fine by me. :-)
Regards, Kevin.
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 828
Posted: 08:09am 20 Mar 2024
Copy link to clipboard 
Print this post

  matherp said  NB: RTC AUTO is disabled if the firmware fails to read the RTC so check wiring etc.


Do I understand correctly that RTC AUTO will then be permanently deactivated?

...I don't think that's such a good idea. The fact that it is deactivated during this session is ok. But it should not be deactivated on a restart.

(Yesterday my touch was suddenly no longer calibrated?!?)

:)Frank
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 08:36am 20 Mar 2024
Copy link to clipboard 
Print this post

Kevin

Please let me have your option list and the file you are "LIST"ing so I can see what is going on.

Frank

I haven't touched any functionality in this area for ages so I don't know why you are seeing these random unconnected issued. When I get home I'll try and completely simulate your configuration to see if I can replicate any of your issues
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 10:34am 20 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Further testing this morning, the double page scroll while listing a file only happens when you use the USB keyboards, it's as though there is key bounce, in fact, if I have both a USB keyboard and a terminal connected together and I start the listing from the terminal, works great every time, but if I then start to use the USB keyboard to "Press any key" I get 2 screens worth, go back to terminal all good, all in the same listing of a file. I have also now tested using 2 different USB keyboards, one wireless and one wired.
Options, I think my touch is broken on the screen.
PicoMite MMBasic USB Edition  5.09.00b7
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION SYSTEM SPI GP18,GP19,GP16
OPTION AUTORUN  1
OPTION COLOURCODE ON
OPTION KEYBOARD UK, 0, 0, 200, 100
OPTION PICO OFF
OPTION CPUSPEED  252000 'KHz
OPTION LCDPANEL CONSOLE ,,,,,NOSCROLL
OPTION DISPLAY 26, 60
OPTION LCDPANEL ILI9481, LANDSCAPE,GP15,GP14,GP13
OPTION TOUCH GP12,GP11
GUI CALIBRATE 0, 3948, 4090, -1300, 9223372036854775807
OPTION SDCARD GP22
OPTION KEYBOARD REPEAT 200,100

Code being listed.
2multiclock480x320.BAS.zip

You said a while back, that a LCD that is 480x320 would not be able to have both a Frame buffer and a Layer buffer, because of memory limitations. Is there a way of effectively forcing a smaller Frame/Layer buffer, along with only updating a smaller portion of the LCD, to simulate using say a 240x320 screen? for debugging and testing purposes on a larger screen, so while at command prompt/editing full size, then the program can request a smaller screen/buffer? I realise this could be almost impossible?
Regards, Kevin.
Edited 2024-03-20 20:41 by Bleep
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 12:28pm 20 Mar 2024
Copy link to clipboard 
Print this post

Kevin

I thought it may be a USB keyboard issue. Can't sort this til I get home.
I'll look at a windowed mechanism for SPI displays. I've done this for SSD1963 displays where is makes sense (pixel doubling) to expand the display but no promises
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 12:42pm 20 Mar 2024
Copy link to clipboard 
Print this post

No problem, if some sort of windowing were possible that would be the icing on the cake. :-)
Regards Kevin.
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 04:09pm 20 Mar 2024
Copy link to clipboard 
Print this post

Hi everyone,
I now have the 4" ILI9488, here are some photos, compairing it against a 3.5" at Font 7 and Font 8, then a video, showing the editor page and line scrolling for speed of operation, with Peters new improvements. :-)
I would say using Font 7 is very usable the edit screen is 38x81 and Font 8, for me, not at all bad, the edit screen is 51x121.

Font 7


Font 8


Link to a video showing the 4" ILI9488 in use, for speed of operation Font 7.

Looks very good to me.
Regards, Kevin.
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 828
Posted: 07:58am 21 Mar 2024
Copy link to clipboard 
Print this post

  Bleep said   the double page scroll while listing a file only happens when you use the USB keyboards,

  matherp said  I thought it may be a USB keyboard issue.


However, this problem only occurs if the console is connected to the PC at the same time. Without a PC connection, switching to the 2nd page does not happen.

Frank
Edited 2024-03-21 17:59 by Frank N. Furter
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 10:03am 21 Mar 2024
Copy link to clipboard 
Print this post

Hi Frank,
That's strange, mine will do the double listing page, from a USB keyboard, whether it is connected to a terminal or not? Might as well wait and see what Peter finds once he has all his debug tools available.
Regards Kevin.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 12:10pm 23 Mar 2024
Copy link to clipboard 
Print this post

Question: Have you changed the auto-repeat settings? I can't replicate.
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 06:00pm 23 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Yes I did, 200mS & 100mS repeat I believe.
Regards Kevin
 
     Page 5 of 12    
Print this page
© JAQ Software 2024