Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:22 21 Nov 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.05.03

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9080
Posted: 03:25pm 01 May 2019
Copy link to clipboard 
Print this post

Please find attached a new release of firmware for the Pi-cromite (OS must be Raspbian Stretch or Stretch-Lite)

2019-05-02_011715_mmbasic.zip

2019-05-02_011750_Pi-cromite_Manual.pdf

It includes a new information function MM.INFO$() as well as "LIST FUNCTIONS" and "LIST COMMANDS". It includes new drawing commands POLYGON, ARC and BEZIER and some optimization of existing drawing commands. It fixes a bug in SPRITE SHOW when one or both of the coordinates of the top left corner are negative.

It also fixes a number of issues that occurred when a user defined function was called in the conditional test of a DO WHILE loop or in the parameters of a FOR-NEXT loop - thanks to Geoff for this fix.

Edited by matherp 2019-05-03
 
retepsnikrep

Senior Member

Joined: 31/12/2007
Location: United Kingdom
Posts: 131
Posted: 09:04pm 01 May 2019
Copy link to clipboard 
Print this post

When I win the euromillions i'm def going to hijack you with an offer you can't refuse (sorry forum members) to work on my own pet vanity project for while . :)

oh well i can dream... Thanks for your incredible work... Edited by retepsnikrep 2019-05-03
Gen1 Honda Insights.
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 427
Posted: 09:11pm 01 May 2019
Copy link to clipboard 
Print this post

hi peter

I install this version
run prog test graf
all is ok (MM.info SPRITES Polygon, Lsts) except ARC and Bezier
system said "Display not configured"

this pb is not present if LCDPanel=ILI9481


Device type=Pi-cromite
Autorun = off
CPU Speed = 120000000
LcdPanel = HDMI
SDCard = Ready
Touch = Disabled
-function SPRITE aviable


I have tested with lcdpanel 1.3" with ST7789 driver
it accept driver but nothing on screen
is my config correct?
and on test 20 (text transparent) and sprites, it stop with sigHandler error (signal 11).it seems that pb come from no read function with SPI driver


OPTION LCDPANEL ST7789,L,22,13,24


Edited by goc30 2019-05-03
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9080
Posted: 09:01am 02 May 2019
Copy link to clipboard 
Print this post

Please try this update. Fixes arc and bezier with HDMI, fixes sighandler error with ST7789.

2019-05-02_190134_mmbasic.zip


The config is correct for the version of the ST7789 I use
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 427
Posted: 09:42am 02 May 2019
Copy link to clipboard 
Print this post

Hi peter
as all time, very good job

I give you results

1 - For St7789: Sprite ok (I must modify my prog to windowing sprites in 240x240 res)
1bis - config is correct with 22,13,24 (as you put on your link)
2 - For HDMI: all is ok else.. triangles, i have nothing
3 - for ILI9481 config is different (18,22,24 and 10.000.000)
3b- all is ok, but it is very very very slow (167sec for all tests, and 27sec for minima - st7789 give 4sec for minima and 27sec for all)

(ili9481, is an 3.5" B v2)Edited by goc30 2019-05-03
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9080
Posted: 11:19am 05 May 2019
Copy link to clipboard 
Print this post

New version with STR2BIN() and BIN2STR$()

2019-05-05_211935_mmbasic.zip
 
ceptimus
Senior Member

Joined: 05/07/2019
Location: United Kingdom
Posts: 130
Posted: 07:21pm 22 Aug 2019
Copy link to clipboard 
Print this post

I'm trying to get this going on a Raspberry Pi Zero W starting with a clean install.

My first mistake ? was probably installing Raspbian Buster Lite and then doing a sudo apt-get update and sudo apt-get upgrade.

Then I tried to install PigPIO 68 but could only find the newer V71.  Installed that which seemed to go mostly okay except it complained about a missing loader at the end - I think that was a Python 3 thing so I pressed on.

(here's the error)

if which python3; then python3 setup.py install ; fi
/usr/bin/python3
Traceback (most recent call last):
 File "setup.py", line 3 in <module>
   from distutils.core import setup
ModuleNotFoundError: No module named 'distutils.core'
make: *** [Makefile:107 install] Error 1

...but doing

sudo ./x_pigpio

...it passes all the (numerous) tests.

Installed the latest mmbasic from the previous post in pi's home directory and chmod +x'ed it

When I try sudo ./mmbasic I get:

./mmbasic: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I've tried ldconfig -v | grep -i 'libncurses' which finds the following three instances

libncursesw.so.6 -> libncursesw.so.6.1
libncurses.so.6 -> libncurses.so.6.1

libncursesw.so.5 -> libncursesw.so.5.9

Any advice gratefully received.
Edited 2019-08-23 06:28 by ceptimus
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9080
Posted: 09:45pm 22 Aug 2019
Copy link to clipboard 
Print this post

Current versions of Pi-cromite are incompatible with Buster. You could try the attached but untested

mmbasic.zip
 
ceptimus
Senior Member

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

Thanks Peter. That's working!  

First time I tried it, I forgot the sudo, and got stuck with some text message scrolling up the screen - too fast to be readable: Ctrl-C, Ctrl-Break, and such wouldn't stop it, but Ctrl-Alt-Delete rebooted the Pi.

Second time I tried it, I saw:

LINUX MMBasic Version 5.05.04
Copyright 2011-2018 Geoff Graham
Copyright 2011-2018 Peter Mather
> print mm.ver
5.0504
>

I guess you could change your Copyright message to 2019  

I shall now proceed to experiment.  
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3149
Posted: 01:55pm 01 Apr 2020
Copy link to clipboard 
Print this post

I was getting "bad gpio" messages on my pi-ZW when starting "sudo ./mmbasic". I loaded the latest (I think) pi-cromite from this thread:
2019-05-05_211935_mmbasic.zip

I'm still getting "bad gpio" and when I enter (no prompt) "print date$", I get a pigpio diagnostic message. "sudo apt-get upgrade pigpio" says I have the latest version.

I haven't used pi-cromite in a while; what am I doing wrong?
[code]
:~ $ sudo ./mmbasic
2020-04-01 10:50:23 gpioWrite: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
2020-04-01 10:50:23 gpioWrite: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
2020-04-01 10:50:23 gpioWrite: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
2020-04-01 10:50:23 gpioWrite: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
2020-04-01 10:50:23 gpioSetPullUpDown: bad gpio (110)
2020-04-01 10:50:23 gpioSetMode: bad gpio (110)
print date$
^C2020-04-01 10:50:42 sigHandler: Unhandled signal 2, terminating


#####################################################
pigpio version=64 internals=200
micros=1 allocMode=1 dmaInitCbs=2 DMARestarts=1
samples 1 maxSamples 1300 maxEmit 0 emitFrags 0
cbTicks 71765, cbCalls 8023
pipe: good 0, short 0, would block 0
alertTicks 6384, lateTicks 0, moreToDo 1637
       7         0         0         0         0         0         0         0         0         0         0         0         0         0         0         0         0         0         0         0         0        11       294     12183    102032    422623     98755     13439       523        30         3         1         0         0         0         0         0         0         0         1         0         0         0         0         0         0         0         0         0        18
#####################################################

[/code]
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
paulwratt
Newbie

Joined: 13/04/2020
Location: New Zealand
Posts: 1
Posted: 03:27am 13 Apr 2020
Copy link to clipboard 
Print this post

just a note, the url listed in the PDF is wrong, should be abyz.me.uk
 
Print this page


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

© JAQ Software 2024