Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 18:43 18 Apr 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 : Pi-cromite V5.4.05 with documentation

     Page 2 of 4    
Author Message
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 11:13am 03 Sep 2017
Copy link to clipboard 
Print this post

thank you Peter,

would it be possible to make a driver for my 3.5 inch display? That should have an ILI9486 chip
It runs at my RPi3 (with the ILI9481 driver) but not on the zero w

LINK

if you need it physically I will send you the money by paypal

best regards Ron
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 09:29pm 03 Sep 2017
Copy link to clipboard 
Print this post

  Quote  would it be possible to make a driver for my 3.5 inch display? That should have an ILI9486 chip


Ronn, you can try the attached which may work based on three assumptions

1: your board is actually an ILI9486 - there are lots of different drivers on these boards all of which have different initialisation
2: The initialisation sequence I found online is correct
3: I implemented it properly

USE OPTION LCDPANEL ILI9486..... to configure

Let me know - no change of version number until I know it works


2017-09-04_072822_mmbasic.zip
 
Peter63
Newbie

Joined: 28/07/2017
Location: Sweden
Posts: 14
Posted: 09:32pm 03 Sep 2017
Copy link to clipboard 
Print this post

Hi, Peter
Nice, i'am happy

CLS CONSOLE
CURSOR MOVE x,y
CURSOR COLOUR "fg","bc"
CURSOR REVERSE ON/OFF
CURSOR BOLD ON/OFF
CURSOR UNDERLINE ON/OFF

Bold and Underline - is it possible on console screen?

Notes under my testing:
OPTION DISPLAY height, width
When i input value outside range, was
editor totally corrupted...

Peter


 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 09:49pm 03 Sep 2017
Copy link to clipboard 
Print this post

  Quote  Bold and Underline - is it possible on console screen?


Works for me tested on teraterm, putty and GUI console.

OPTION DISPLAY works on putty and teraterm but doesn't seem to work on GUI console. after changing OPTION DISPLAY make sure it is set correctly with OPTION LIST and then close and restart mmbasic before editing - this makes sure the terminal is reset fully.
 
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 04:49am 04 Sep 2017
Copy link to clipboard 
Print this post

  matherp said  
  Quote  would it be possible to make a driver for my 3.5 inch display? That should have an ILI9486 chip


Ronn, you can try the attached which may work based on three assumptions

1: your board is actually an ILI9486 - there are lots of different drivers on these boards all of which have different initialisation
2: The initialisation sequence I found online is correct
3: I implemented it properly

USE OPTION LCDPANEL ILI9486..... to configure

Let me know - no change of version number until I know it works


2017-09-04_072822_mmbasic.zip


hi Peter sorry i have to report :it does not work with the Zero W- the same effect as i use the ili9481 driver
I wonder why it works at RPi3.... Edited by RonnS 2017-09-05
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 07:36am 04 Sep 2017
Copy link to clipboard 
Print this post

Ronn

If I understand your previous posts correctly, on the Pi 3 you are using a Raspbian image that came with the screen - is this correct?

If so then it is properly initialising the screen and the subsequent mmbasic initialisation is not doing any harm. The cursor positioning and pixel upload for all these screen controller variants is the same - the issue is correctly initialising the specific controller.

I've ordered one of these which I will get working once I have it. This may or may not be the same controller as yours but there is a chance.

Have you got any screens working on the Pi-Zero? Which Raspbian variant are you running on it?
 
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 09:46am 04 Sep 2017
Copy link to clipboard 
Print this post

Hello Peter
  Quote  If I understand your previous posts correctly, on the Pi 3 you are using a Raspbian image that came with the screen - is this correct?

no ....i use a standart Raspian Image.I want only to use this displays with PiCromite Basic by using your drivers they are implemented

the 3.5 and the 4.0 inch Displays are working with the standart Raspian Image that you have too ..and a Raspi3.. by using PiCromite Basic with your ILI9681 driver
you have shown the way with your waveshare 4 inch display did you remember?

but the 3.5 inch display dont work with the Raspi Zero W standart rasbian image under Picromite Basic

i increased the zero w clockspeed up to 900 mhz so i got a full screen instead a half screen of different wild patterns by running GUI TEST LCDPANEL
with ILI9481 driver and the new ILI9486 driver no difference

next i could test the behaviour of both displays with the ili9486 driver at my Rasberry Pi 3
Edited by RonnS 2017-09-05
 
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 10:24am 04 Sep 2017
Copy link to clipboard 
Print this post

  Quote  next i could test the behaviour of both displays with the ili9486 driver at my Rasberry Pi 3


done

at both displays i only see a 3/4 of the screen 1/4 is a grey rectangle
GUI TEST LCDPANEL works in the visible part


to remember: the 4 inch display works with both, the Raspi3 and the ZeroW -
driver is ILI9481
hope that helps

Ron
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 11:35pm 04 Sep 2017
Copy link to clipboard 
Print this post

Ronn

Please try this hack version on the PI-zero as an experiment, both drivers

2017-09-05_093501_mmbasic.zip

No functional change but I've slowed down the SPI for the displays.

Note, you should always unplug and replug the displays between tests as some of the config seems to survive the hard reset and can confuse results



 
Peter63
Newbie

Joined: 28/07/2017
Location: Sweden
Posts: 14
Posted: 12:03am 05 Sep 2017
Copy link to clipboard 
Print this post


Hi Peter
I got it. It works Bold and Underline in Console window.
Peter

 
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 12:34am 05 Sep 2017
Copy link to clipboard 
Print this post

  matherp said   Ronn

Please try this hack version on the PI-zero as an experiment, both drivers

2017-09-05_093501_mmbasic.zip

No functional change but I've slowed down the SPI for the displays.

Note, you should always unplug and replug the displays between tests as some of the config seems to survive the hard reset and can confuse results





a Big Thank you

Hi Peter , first i try it with the ILI9481 driver and it works !
the 3.5 inch Display has a brilliant brightness and contrast

more tests i can make today in the evening or tomorrow morning.. . have to work :)

thank you very much again :)

Ron
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 02:00am 05 Sep 2017
Copy link to clipboard 
Print this post

Please find attached new version 5.4.08

2017-09-05_115813_mmbasic.zip

2017-09-05_115829_Pi-cromite_Manual.pdf

Remember to delete the options file before running the new version

rm .options


Changes are:

Corrected the colour palette for the ILI9481 display

Implemented ILI9486 display (untested)

Added a new optional parameter to the OPTION LCDPANEL command

OPTION LCDPANEL spidisplay, orientation, DCpin, RESETpin {, CSpin} {, SPIspeed}

The new parameter SPIspeed can be used to set the transfer rate. Valid values are 1,000,000 to 30,000,000. The ILI9481 defaults to 16,000,000 all other displays default to 30,000,000. See the Micromite User manual, ILI9341 section, for further details of parameter usage.

Ronn: the previous hack version had SPIspeed set to 8,000,000. Suggest you start with this and see how high you can go without errorEdited by matherp 2017-09-06
 
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 09:45pm 05 Sep 2017
Copy link to clipboard 
Print this post

OK Peter,

both displays ( the 4 inch and the 3.5 inch )are working with the ILI9481 driver and a SPIspeed up to 16 000 000
the 4 inch display works much better with this SPIspeed
as an example : the GUI LED is really off when it's off, not just half
and
the "Palette" display more than 8 colours now :) , its ok

best regards Ron

something else:

while testing i think about , in some cases it would be nice to see the "print" output on the display directly, like the output from GUI CALIBRATE ( as an example were ist working) would it be possible ? eventually with an option to switch this on and of ??

what do you think about itEdited by RonnS 2017-09-07
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 813
Posted: 02:01am 07 Sep 2017
Copy link to clipboard 
Print this post

Hi Ron,

can you tell me your config for your ILI9486 display? I bought it via your link from Amazon.
Is there a way to run an editor on it to program with MMBasic? Did you tried the delivered image?
It would be nice to build a little independent Basic computer with a Pi Zero...

Frank
 
RonnS
Senior Member

Joined: 16/07/2015
Location: Germany
Posts: 120
Posted: 12:04pm 07 Sep 2017
Copy link to clipboard 
Print this post

hello Frank N Furter,

it was a wrong information i've got from the salesman

this display is a ILI9481
to install this do :

remove the option file
cd (your basic folder )
rm .options

run mmbasic with :
sudo ./mmbasic
the type:
OPTION LCDPANEL ILI9481, L, 18, 22, 24, 16000000
to test type:
GUI TEST LCDPANEL
if you need touch type:
OPTION TOUCH 26, 11 then type:
GUI CALIBRATE and follow the instructions

just in time you can control it over Putty or Rasbian CLI
or your own programmed GUI
i hope it would be possible to got an directly in and output also

  Quote  Did you tried the delivered image?

no - dont touch a running system :)

best regards Ron



Edited by RonnS 2017-09-08
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 813
Posted: 12:20am 11 Sep 2017
Copy link to clipboard 
Print this post

Hi Ron,

thank you very much! I will try it in the next time...

Frank
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 07:44am 14 Sep 2017
Copy link to clipboard 
Print this post

Wasn't there a test Routine for testing Displays like the ILI9341???

Where is it documented?


THX
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 01:54am 15 Sep 2017
Copy link to clipboard 
Print this post


For testing:

gui test lcdpanel
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8566
Posted: 07:31am 16 Sep 2017
Copy link to clipboard 
Print this post

Don't buy this display as I won't be supporting it on either the MMX or Pi-cromite.





Note the split connector. When you examine it closely you can see there is only one chip select connection for the display itself + the SPI connections. This is because the display is set for 3-wire serial mode. In this mode the data/command mode is set by adding a bit to the front of each byte - i.e. a 9-bit transfer. Neither the MMX nor Pi can support this in hardware so the I/F would have to be bit-banged. The vendor KeDei does provide a Pi image to support the screen but, unsurprisingly, it runs like a dead pig.

Oh well £10 wasted but I'll harvest the various chips for possible future useEdited by matherp 2017-09-17
 
Bill7300
Senior Member

Joined: 05/08/2014
Location: Australia
Posts: 158
Posted: 03:05pm 16 Sep 2017
Copy link to clipboard 
Print this post

That link seems dead, Peter.
Bill
 
     Page 2 of 4    
Print this page
© JAQ Software 2024