![]() |
Forum Index : Microcontroller and PC projects : Pi-cromite V5.4.05 with documentation
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
RonnS Senior Member ![]() Joined: 16/07/2015 Location: GermanyPosts: 120 |
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 KingdomPosts: 10068 |
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 Regular Member ![]() Joined: 28/07/2017 Location: SwedenPosts: 47 |
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 KingdomPosts: 10068 |
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: GermanyPosts: 120 |
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.... ![]() |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10068 |
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: GermanyPosts: 120 |
Hello Peter 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 |
||||
RonnS Senior Member ![]() Joined: 16/07/2015 Location: GermanyPosts: 120 |
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 KingdomPosts: 10068 |
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 Regular Member ![]() Joined: 28/07/2017 Location: SwedenPosts: 47 |
Hi Peter I got it. It works Bold and Underline in Console window. Peter |
||||
RonnS Senior Member ![]() Joined: 16/07/2015 Location: GermanyPosts: 120 |
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 KingdomPosts: 10068 |
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 |
||||
RonnS Senior Member ![]() Joined: 16/07/2015 Location: GermanyPosts: 120 |
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 |
||||
Frank N. Furter Guru ![]() Joined: 28/05/2012 Location: GermanyPosts: 936 |
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: GermanyPosts: 120 |
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 no - dont touch a running system :) best regards Ron |
||||
Frank N. Furter Guru ![]() Joined: 28/05/2012 Location: GermanyPosts: 936 |
Hi Ron, thank you very much! I will try it in the next time... Frank |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 723 |
Wasn't there a test Routine for testing Displays like the ILI9341??? Where is it documented? THX |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 723 |
For testing: gui test lcdpanel |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10068 |
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 ![]() |
||||
Bill7300 Senior Member ![]() Joined: 05/08/2014 Location: AustraliaPosts: 159 |
That link seems dead, Peter. Bill |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |