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: GermanyPosts: 11 |
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: GermanyPosts: 11 |
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 KingdomPosts: 9173 |
Appendix E of the manual |
||||
led-bloon Senior Member Joined: 21/12/2014 Location: AustraliaPosts: 205 |
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: GermanyPosts: 11 |
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 KingdomPosts: 9173 |
That definitely isn't supported as it uses different I/O - sorry 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: GermanyPosts: 11 |
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 KingdomPosts: 9173 |
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: GermanyPosts: 11 |
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 KingdomPosts: 9173 |
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: AustraliaPosts: 3 |
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 KingdomPosts: 130 |
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: AustraliaPosts: 3 |
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 KingdomPosts: 130 |
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: AustraliaPosts: 3 |
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 KingdomPosts: 130 |
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 KingdomPosts: 9173 |
Minor tweak to allow ceptimus' Chess program to run mmbasic.zip |
||||
ceptimus Senior Member Joined: 05/07/2019 Location: United KingdomPosts: 130 |
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 |