Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:11 02 Aug 2025 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 5.04.17: Sprites

     Page 1 of 3    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 01:20pm 08 Feb 2018
Copy link to clipboard 
Print this post

Please find attached release 5.04.17 for Stretch

2018-02-09_053145_Pi-cromite5.4.17stretch.zip

and for Jessie

2018-02-09_053643_Pi-cromite5.4.17jessie.zip

and the updated manual

2018-02-09_053748_Pi-cromite_Manual.pdf

This contains the full current implementation of SPRITES as per the various recent threadsEdited by matherp 2018-02-10
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 04:09am 10 Feb 2018
Copy link to clipboard 
Print this post

Hello
first, congratulations for the work.

I have a little problem:
I used this version on a raspi2 / Jessie. I installed a lcd 3.2"/3buttons

ref

I put the option "lcdpanel" (OPTION LCDPANEL ILI9341, L, 15,13,24) and tested with "line 0,0,100,200 ". its Ok
After I added the option "touch" (OPTION TOUCH 16,21), then launched "gui calibrate".
Impossible to calibrate.I dn't know if it is a problem hard or if this option is not installed on the screen, after that I wanted to remove the "touch" option.

the problem is that it has also remove the "lcdpanel" option and impossible to work with lcd in mmbasic. To work correctly, I must delete ".option" , and after that I raise it, and finally I put back the option lcdpanel

I specify that I have not tested with olders versions

Edited by goc30 2018-02-11
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 07:52am 10 Feb 2018
Copy link to clipboard 
Print this post

Based on docs referenced it should be OPTION TOUCH 26,11
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 01:20pm 10 Feb 2018
Copy link to clipboard 
Print this post

sorry I put 26,11 (its a post mistake). The pb is that it disable also lcdpanel and after i cant use lcd
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 04:46pm 10 Feb 2018
Copy link to clipboard 
Print this post

  Quote  The pb is that it disable also lcdpanel and after i cant use lcd


This will happen if T_IRQ or T_CS are being held low for some reason. T_IRQ would cause continuous interrupts. T_CS would enable the XPT2046 and corrupt the SPI bus. I haven't used this display but the functionality has been tested OK on a normal ILI9341 with discrete wiring
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 07:08am 11 Feb 2018
Copy link to clipboard 
Print this post

after some tests, it seems that my lcd is not an ILI9341 but an ILI9325
chines lcd is.... chines
 
Micro-80
Newbie

Joined: 03/03/2017
Location: Russian Federation
Posts: 26
Posted: 07:10am 11 Feb 2018
Copy link to clipboard 
Print this post

Tell me please how to make startup mmbasic and the application program when power up Raspberry Pi.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 07:55am 11 Feb 2018
Copy link to clipboard 
Print this post

  Quote  ll me please how to make startup mmbasic and the application program when power up Raspberry Pi.

Not done it myself but see this page for suggestions
 
Micro-80
Newbie

Joined: 03/03/2017
Location: Russian Federation
Posts: 26
Posted: 10:17am 12 Feb 2018
Copy link to clipboard 
Print this post

Thank`s, Peter!
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 02:00am 13 Feb 2018
Copy link to clipboard 
Print this post

I love being able to draw to an HDMI screen, but I can't seem to be able to draw text.
Line, box,and circle work fine, but so far text just does not appear. No mention of a text command in the manual, so quite possibly missing something...
Anyone else had more success?
TIA, Dave
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1003
Posted: 03:53am 13 Feb 2018
Copy link to clipboard 
Print this post

The pi-cromite manual only has commands that are new or different from the MM and MM+ so for those which have not changed see the MM and MM+ manuals.
Latest F4 Latest H7 FotS
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 06:14am 13 Feb 2018
Copy link to clipboard 
Print this post

Further to the above I've found I can display the string Time$ if I use a 'y value' of one.
Anything larger will move the text up and off the screen proportionally.
Text commands that have worked on dozens of mites and lcd screens just dont seem to display...
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 09:02am 13 Feb 2018
Copy link to clipboard 
Print this post

  Quote  I love being able to draw to an HDMI screen, but I can't seem to be able to draw text.


Looks like a bug I introduced in the last release - haven't got a development environment available at the moment but will try and cobble something together

UPDATE

Try this (untested)

2018-02-13_200231_mmbasicjessie.zip

2018-02-13_200255_mmbasicstretch.zip Edited by matherp 2018-02-14
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 11:18am 13 Feb 2018
Copy link to clipboard 
Print this post

Bingo!!
Working perfectly.
How many ways can members say THANKYOU PETER...
 
Micro-80
Newbie

Joined: 03/03/2017
Location: Russian Federation
Posts: 26
Posted: 03:30pm 14 Feb 2018
Copy link to clipboard 
Print this post

Dear Peter!
I use the "SETTICK PERIOD,TARGET" in my program for RPi 3B. If I set the period to less than 10 ms, the interrupt will still come with a period of 10 ms. It seems that the period can be set only by a multiple of 10 ms. The MMbasic manual says "The period can range from 1 to 2147483647 ms". How to make a period of a multiple of 1 ms?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 03:41pm 14 Feb 2018
Copy link to clipboard 
Print this post

  Quote  How to make a period of a multiple of 1 ms?


Sorry but you can't. The resolution of the tick timer is 10msec on the Pi-cromite. This is a limitation of the pigpio library. I will update the Pi-cromite documentation to make this clear.Edited by matherp 2018-02-16
 
Micro-80
Newbie

Joined: 03/03/2017
Location: Russian Federation
Posts: 26
Posted: 04:18pm 14 Feb 2018
Copy link to clipboard 
Print this post

Thank`s, Peter! All clear.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 05:56am 15 Feb 2018
Copy link to clipboard 
Print this post

The source for the Pi-cromite version can now be downloaded from mmbasic.com
Geoff Graham - http://geoffg.net
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 08:49am 12 May 2018
Copy link to clipboard 
Print this post

This is an amazing project
Looking through the docs you've listed the pinout for compatibility with other pcb's
You have TOUCH-IRQ on pin 24 and TOUCH-CS on pin 26
but I cannot see which pin you use for T_CLK
or does it use pin 23 SPI-CLK which would make T_DO Pin 19 and T_DIN Pin 21?

Could someone beso kind as to answer the following as well please?
There are so many pages about the Pi-cromite but I cannot find what you actually do to start MM on the Pi

And what settings you have to config with the various Displays

I know they are listen in the MM+ manual but I would assume they are different for the Pi?

How do you read from the SD card on the Pi? and Where on the SD card do you store images for use with the Pi?
for instance on the MM+ I would Load image "test.bmp" ,248,330 'load picture x,y
Or is it simply the same command?


 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 08:59am 12 May 2018
Copy link to clipboard 
Print this post

  Quote  r does it use pin 23 SPI-CLK which would make T_DO Pin 19 and T_DIN Pin 21?


Yes

  Quote  How do you read from the SD card on the Pi?

Same as the MM+

  Quote  There are so many pages about the Pi-cromite but I cannot find what you actually do to start MM on the Pi


Page 6 of the manual attached to the first page of this thread

  Quote  Where on the SD card do you store images for use with the Pi?

Easiest place is the same as the mmbasic executable or a sub directory thereof
 
     Page 1 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025