Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:42 03 Dec 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 4 of 4    
Author Message
mysli
Newbie

Joined: 27/07/2016
Location: Germany
Posts: 11
Posted: 07:32pm 13 Jan 2018
Copy link to clipboard 
Print this post

Hi Peter,

I just got me a RPi 3, that one works.

Seems that there really is some incompatibility of mmbasic with a RPi2.

Thanks for you support.
I can give mmbasic a try now .

Regards
Daniel
 
mysli
Newbie

Joined: 27/07/2016
Location: Germany
Posts: 11
Posted: 09:26pm 13 Jan 2018
Copy link to clipboard 
Print this post

Hi Peter,

btw. GUI FRAME command doesn't display the 3rd character of the caption.

One question:
How to disable the blinking cursor in a program?
I want to play around with the GUI elements and always have the blinking cursor on screen while the program is executed.

Regards
Daniel
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9173
Posted: 10:47pm 13 Jan 2018
Copy link to clipboard 
Print this post

  Quote  How to disable the blinking cursor in a program?


Appendix E of the manual
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 205
Posted: 11:49pm 13 Jan 2018
Copy link to clipboard 
Print this post

For the record...

Pi 2 Model B v1.1 (BCM2836 Cortex-A7 - now deprecated)
Pi 2 Model B v1.2 (BCM2837 Cortex-A53)
Both units have no problems with Peter's (and Geoff's) MMBasic - jessie or stretch
versions - whether by ssh or by local keyboard/mouse and display.

Thanks Peter & Geoff
Best Regards
led

Miss you George
 
mysli
Newbie

Joined: 27/07/2016
Location: Germany
Posts: 11
Posted: 11:52am 14 Jan 2018
Copy link to clipboard 
Print this post

Hi Peter,

regarding the cursor off: I certainly read Appendix E and also gave it a try,
but this is not doing exactly the job I had in mind.
Since I am not planning to operate the Pi headless I would like to keep the
blinking cursor in the Bash as well as in the mmbasic prompt or edit.
But with the guideance in Appendix E the cursor is completely off.

I rather would like to turn off the cursor at the beginning of a basic programm,
and turn it back on right before the program exits.

Is there an option for that as well?

Regarding my non-functional RPi2: I was looking at the various Pi models available,
and I must confess it's not a RPi2, but a RPi1 Model B.
That's most probably the cause of the trouble I had.

Regards
Daniel
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9173
Posted: 12:04pm 14 Jan 2018
Copy link to clipboard 
Print this post

  Quote  I must confess it's not a RPi2, but a RPi1 Model B


That definitely isn't supported as it uses different I/O - sorry

  Quote  I rather would like to turn off the cursor at the beginning of a basic programm,
and turn it back on right before the program exits.


Try executing the requisite Linux commands using the SYSTEM basic statement at the top an bottom of the Basic program
 
mysli
Newbie

Joined: 27/07/2016
Location: Germany
Posts: 11
Posted: 01:59pm 14 Jan 2018
Copy link to clipboard 
Print this post

Hi *,

another question:
Is the official 7" display for RPi supported by MMBasic, incl. touch?

Regards
Daniel
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9173
Posted: 03:01pm 14 Jan 2018
Copy link to clipboard 
Print this post

  Quote  s the official 7" display for RPi supported by MMBasic, incl. touch?


No. If it is HDMI then it can be used as per any other HDMI screen but touch is not currently supported. I don't have one to develop with so won't be progressing this at the moment
 
mysli
Newbie

Joined: 27/07/2016
Location: Germany
Posts: 11
Posted: 06:34pm 20 Jan 2018
Copy link to clipboard 
Print this post

Hi *,

I am a little bit confused about the right display for RPi + MMBasic.
HDMI surely works, no question about this.
But I also always read support for SSD1963 based displays, which are mostly controlled over SPI, I assume.
But how is the touch controller connected in such a case?

What I have read so far the RPi does only have one SPI, how is this going along with the two SPI slaves in case of an SPI driven display with touch?
Is the RPi providing two individual chip selects for the two slaves then?

Can you recommend a display in the 5"..7" range with touch, which is supported by MMBasic?

Thx. and Regards
Daniel
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9173
Posted: 07:27pm 20 Jan 2018
Copy link to clipboard 
Print this post

The Pi-cromite supports 5 and 7" SSD1963 displays over an 8-bit parallel interface Pinout details are in the manual. This is only used as an application display and not a console display. The easiest application display to use is one of the 3.5" or 4" ili9481 displays as these plug directly onto the Pi

All types of displays support touch using the XPT2046 controller. A single SPI channel can be used for any number of devices as long as they have separate chip selects.

See this post and this post
 
shavaj
Newbie

Joined: 12/07/2019
Location: Australia
Posts: 3
Posted: 10:17am 25 Oct 2019
Copy link to clipboard 
Print this post

Hi All,

I am running VER 5.0503 on a Pi Zero. I can't get any graphic or sound commands to work.

When I try the line command. I get an error "Display not configured"

and with sound or tone command, "Unknown command"


Any help would be appreciated.

Cheers
 
ceptimus
Senior Member

Joined: 05/07/2019
Location: United Kingdom
Posts: 130
Posted: 11:23am 25 Oct 2019
Copy link to clipboard 
Print this post

Assuming you want graphics to go to the normal Pi monitor connected via HDMI, have you done the following command?

OPTION LCDPANEL HDMI

The option is remembered between sessions - I think via writing a hidden config file to the current directory?  So you only need to do that once.

I read somewhere that the Pi's composite video (if present and configured) also works when you select that option, though I've not tried that myself.

For sound via the normal Pi channels (e.g. to your HDMI monitor if it has speakers) you can use the SYSTEM command to call audio players for example:

SYSTEM "omxplayer example.mp3"

I don't think the Pi-cromite supports the SOUND or TONE commands.  You can get a list of what commands are available by

list commands

and a list of available functions by

list functions
.
Edited 2019-10-25 21:27 by ceptimus
 
shavaj
Newbie

Joined: 12/07/2019
Location: Australia
Posts: 3
Posted: 11:58am 25 Oct 2019
Copy link to clipboard 
Print this post

Thank you for your quick response.

Yes, OPTION LCDPANEL HDMI works!

list commands doesn't work though. I think list is to display the file in memory

cheers
 
ceptimus
Senior Member

Joined: 05/07/2019
Location: United Kingdom
Posts: 130
Posted: 12:36pm 25 Oct 2019
Copy link to clipboard 
Print this post

list commands definitely works in version 5.05.04

You could try upgrading if you have the time - but I recommend using a different SD card in your Pi to try it out. Then if you run into problems you can just swap SD cards to go back to your 5.05.03 version.

I think to run 5.05.04 you need Buster (preferably Buster Lite) and the latest PIGPIO - that's why you don't want to mess up your existing SD card until you know everything works.
.
Edited 2019-10-25 22:43 by ceptimus
 
shavaj
Newbie

Joined: 12/07/2019
Location: Australia
Posts: 3
Posted: 07:01am 26 Oct 2019
Copy link to clipboard 
Print this post

I compiled it from source a few weeks ago. I will download again and try.

Thanks for your help
 
ceptimus
Senior Member

Joined: 05/07/2019
Location: United Kingdom
Posts: 130
Posted: 07:52am 26 Oct 2019
Copy link to clipboard 
Print this post

I don't know whether Peter/Geoff have uploaded the source for the latest version yet, but you can certainly download the executable from this thread.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9173
Posted: 12:00pm 29 Nov 2019
Copy link to clipboard 
Print this post

Minor tweak to allow ceptimus' Chess program to run

mmbasic.zip
 
ceptimus
Senior Member

Joined: 05/07/2019
Location: United Kingdom
Posts: 130
Posted: 03:01pm 29 Nov 2019
Copy link to clipboard 
Print this post

Thanks Peter.

I'll check it out and if it works reliably I'll add a graphical chessboard on the Picromite version.

This will allow a more-or-less direct comparison of MMBasic speed versus compiled C on the same Pi.  You can download the C source from Tom Kerrigan's site, compile and run it on a Pi.  My Pi Zero got a benchmark score of 0.436

The C program searches 4 ply deep when running the benchmark which took much too long in MMBasic, so I altered the benchmark in the MMBasic version to just search for 30 seconds.  I may have introduced some sort of bug doing that, so I'll make the same changes to the C version for a fairer comparison.
 
     Page 4 of 4    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024