Home  |  Contents 
Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: Pi-cromite V5.4.05 with documentation Post ReplyPost New Topic
<< Prev Page of 5 Next >>
Author
Message << Prev Topic | Next Topic >>
RonnS
Regular Member
Regular Member


Joined: 16 July 2015
Location: Germany
Online Status: Offline
Posts: 77
Posted: 04 September 2017 at 2:49pm | IP Logged Quote RonnS

matherp wrote:
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 on 04 September 2017 at 2:52pm



Back to Top View RonnS's Profile Search for other posts by RonnS
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Offline
Posts: 1765
Posted: 04 September 2017 at 5:36pm | IP Logged Quote matherp

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?
Back to Top View matherp's Profile Search for other posts by matherp
 
RonnS
Regular Member
Regular Member


Joined: 16 July 2015
Location: Germany
Online Status: Offline
Posts: 77
Posted: 04 September 2017 at 7:46pm | IP Logged Quote RonnS

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 on 04 September 2017 at 7:50pm
Back to Top View RonnS's Profile Search for other posts by RonnS
 
RonnS
Regular Member
Regular Member


Joined: 16 July 2015
Location: Germany
Online Status: Offline
Posts: 77
Posted: 04 September 2017 at 8:24pm | IP Logged Quote RonnS

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
Back to Top View RonnS's Profile Search for other posts by RonnS
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Offline
Posts: 1765
Posted: 05 September 2017 at 9:35am | IP Logged Quote matherp

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



Back to Top View matherp's Profile Search for other posts by matherp
 
Peter63
Newbie
Newbie


Joined: 28 July 2017
Location: Sweden
Online Status: Offline
Posts: 11
Posted: 05 September 2017 at 10:03am | IP Logged Quote Peter63


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

Back to Top View Peter63's Profile Search for other posts by Peter63
 
RonnS
Regular Member
Regular Member


Joined: 16 July 2015
Location: Germany
Online Status: Offline
Posts: 77
Posted: 05 September 2017 at 10:34am | IP Logged Quote RonnS

matherp wrote:
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
Back to Top View RonnS's Profile Search for other posts by RonnS
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Offline
Posts: 1765
Posted: 05 September 2017 at 12:00pm | IP Logged Quote matherp

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 error

Edited by matherp on 05 September 2017 at 5:48pm
Back to Top View matherp's Profile Search for other posts by matherp
 
RonnS
Regular Member
Regular Member


Joined: 16 July 2015
Location: Germany
Online Status: Offline
Posts: 77
Posted: 06 September 2017 at 7:45am | IP Logged Quote RonnS

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 it

Edited by RonnS on 06 September 2017 at 7:55am
Back to Top View RonnS's Profile Search for other posts by RonnS
 
Frank N. Furter
Guru
Guru


Joined: 28 May 2012
Location: Germany
Online Status: Offline
Posts: 306
Posted: 07 September 2017 at 12:01pm | IP Logged Quote Frank N. Furter

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
Back to Top View Frank N. Furter's Profile Search for other posts by Frank N. Furter
 
RonnS
Regular Member
Regular Member


Joined: 16 July 2015
Location: Germany
Online Status: Offline
Posts: 77
Posted: 07 September 2017 at 10:04pm | IP Logged Quote RonnS

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 on 07 September 2017 at 10:08pm
Back to Top View RonnS's Profile Search for other posts by RonnS
 
Frank N. Furter
Guru
Guru


Joined: 28 May 2012
Location: Germany
Online Status: Offline
Posts: 306
Posted: 11 September 2017 at 10:20am | IP Logged Quote Frank N. Furter

Hi Ron,

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

Frank
Back to Top View Frank N. Furter's Profile Search for other posts by Frank N. Furter
 


<< Prev Page of 5 Next >>
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.0938 seconds.
Privacy Policy     Process times : 0.02, 0, 0, 0.08