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: 81
Posted: 26 August 2017 at 8:53am | IP Logged Quote RonnS

hi Peter,

i used it with a 4 inch RPi Display like this
http://www.thebackshed.com/forum/forum_posts.asp?TID=9546&PN=4




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: 1837
Posted: 26 August 2017 at 9:36am | IP Logged Quote matherp

This can't work with transparent text, blit and save image. These displays are wired as 16-bit parallel with on-board shift registers converting to SPI. The RD pin is not connected and in any event the shift registers are write only so there is no way to get information back from the display
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: 81
Posted: 26 August 2017 at 9:58am | IP Logged Quote RonnS

ok thank you

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: 1837
Posted: 31 August 2017 at 10:30am | IP Logged Quote matherp

Please find attached version 5.4.06

2017-08-31_125524_mmbasic.zip

2017-08-31_104350_Pi-cromite_Manual.pdf

Changes are:

Implemented SAVE IMAGE for all panel types including ILI9481

BLIT and transparent text now available for all panels. For the SSD1963 the RD pin no longer needs to be specified and can just be tied high instead. If it is specified it is just pulled high in the code.

Huge (and I mean really huge) performance increase for all SPI panels, including near instantaneous drawing of complex GUI objects like the keyboard. A 320x240 full colour image can now be loaded onto an ILI9341 in 42msec on a Pi-Zero W. Try GUI TEST LCDPANEL before and after installing the new version to see the difference.

Good improvements in SSD1963 drawing speed. Loading a 800x480 full colour image now takes just 0.37 seconds

New option OPTION AUTOREFRESH ON/OFF and new command REFRESH. Together these allow you to update a screen in the background and choose when to display the change. This is best explained with a simple example:


OPTION AUTOREFRESH OFF 'This option is not saved and defaults to ON at MMBasic start
LOAD IMAGE "tiger" 'nothing obviously happens
TEXT 100,100,"Tiger",,,4,RGB(red),-1 'draw a title in the background with transparent text
REFRESH 'image appears with text already in place
OPTION AUTOREFRESH ON
BOX 0,0,320,240 'box appears immediately


This is a fairly major rewrite of the drawing code so there may be bugs - please report anything you find



Edited by matherp on 31 August 2017 at 12:56pm
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: 81
Posted: 31 August 2017 at 9:06pm | IP Logged Quote RonnS

wow what a speed

im happy..... so it was very slow at last mmbasic version on the Raspi Zero

thank you very much Peter
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: 81
Posted: 31 August 2017 at 9:31pm | IP Logged Quote RonnS

this Pic i have made with "SAVE IMAGE" from the 3.5 inch display we talk about above
and a Raspi 3


the salesman wrote me it has an ILI9486 Chip


Edited by RonnS on 31 August 2017 at 10:01pm
Back to Top View RonnS's Profile Search for other posts by RonnS
 
Peter63
Newbie
Newbie


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

Hi Peter

Nice work!

Question:
When i use MMBasic on Raspberry Pi (using Raspbian Lite Console mode)
is it any commands for clear console screen (type: CLS console) ?
Position cursor on console screen ?
Console Size command (now 80x24 always) ?

(Using HDMI screen an MMBasic (on Raspberry Pi), is a also a nice thing)

:-) Peter

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


Joined: 11 December 2012
Location: United Kingdom
Online Status: Offline
Posts: 1837
Posted: 03 September 2017 at 7:02pm | IP Logged Quote matherp

Quote:
is it any commands for clear console screen (type: CLS console) ?
Position cursor on console screen ?


There is now Note you can already change console size with OPTION DISLPAY height, width as per the Micromite

Please find attached version 5.4.07

2017-09-03_185823_mmbasic.zip


2017-09-03_185953_Pi-cromite_Manual.pdf

Changes are:

CLS CONSOLE 'Clears the text console

CURSOR MOVE x,y 'Moves the text console cursor position to the X,Y position specified

CURSOR COLOUR “fg”, “bc” 'Set the foreground and background colours for the text console. Only valid if OPTION COLOURCODE ON is set. Valid colours must be in quotes and are the normal 8 primaries RED, BLUE WHITE, BLACK, GREEN, CYAN, MAGENTA, YELLOW



CURSOR UNDERLINE mode 'Sets/removes underline on the subsequent output. Valid modes are ON and OFF

CURSOR REVERSE mode 'Sets/removes reverse colours on the subsequent output. Valid modes are ON and OFF


CURSOR BOLD mode 'Sets/removes bold text mode on the subsequent output. Valid modes are ON and OFF
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: 81
Posted: 03 September 2017 at 9:13pm | IP Logged Quote RonnS

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
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: 1837
Posted: 04 September 2017 at 7:29am | IP Logged Quote matherp

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
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: 14
Posted: 04 September 2017 at 7:32am | IP Logged Quote Peter63

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


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


Joined: 11 December 2012
Location: United Kingdom
Online Status: Offline
Posts: 1837
Posted: 04 September 2017 at 7:49am | IP Logged Quote matherp

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


<< 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.1094 seconds.
Privacy Policy     Process times : 0, 0, 0, 0.11