Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:30 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 : MMBasic with 4K resolution

     Page 2 of 2    
Author Message
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 04:29pm 15 Jan 2023
Copy link to clipboard 
Print this post

Why would you want to do that?

You simply have the bmp or video, etc., existing on the Android device and the Mite simply instructs it to do whatever.

Same exact thing happens with a gaming PC; CPU decides what needs to happen but if you don't have a capable GPU card in your PC, nothing is gonna happen.

The Android device is merely a subsystem like everything else.

Craig

P.S. Been doing this for the past ten years. Prices start @ £10K and I'm kicking butt.  
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 375
Posted: 05:23pm 15 Jan 2023
Copy link to clipboard 
Print this post

MMBasic for Anroid?
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 05:58pm 15 Jan 2023
Copy link to clipboard 
Print this post

  Pluto said  MMBasic for Anroid?


It's called RFO BASIC!

Hugely capable and just as easy to use.

A formidable combo.

You throw an app together in minutes and as long as you don't need heavy computation, (interpreted BASIC) the app is indistinguishable from one that's written in Java, etc.

Take a look at the manual.

To communicate via Bluetooth:


BT.OPEN
BT.CONNECT (if the BT device on the Mite is configured as "Master", no need for this.
BT.LISTEN (several possible values here. "3" = connected


Now we are talking to the Mite like UART to UART.

Craig
Edited 2023-01-16 04:00 by Tinine
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 08:03pm 15 Jan 2023
Copy link to clipboard 
Print this post

It's a work-around but isn't MMBasic with resolution of 4K.

Good for those who want that and are able to live with the limitations.

John
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 10:28pm 15 Jan 2023
Copy link to clipboard 
Print this post

The great thing about opinions is that you don't have to back them up with facts.

Instead of throwing out a statement, how about providing an example?


Craig
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 11:03pm 15 Jan 2023
Copy link to clipboard 
Print this post

RFO Basic is an easy way to program on Android.
Many years ago I produced a version of MMEdit for it but that was soon overtaken by much better tools.

With RFO Basic you can connect to any mite that has either a Bluetooth to serial adapter (HC..)or a TCPIP to serial adapter such as the ESP modules.

It make a great use for all those old Android phones and tablets that are past their use-by date.
How much intelligence you put on the Android versus the 'mite is up to you.
It would depend on the application.

Jim
VK7JH
MMedit
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 09:28am 16 Jan 2023
Copy link to clipboard 
Print this post

John is right though, using an Android display (or anything else between the MMBasic device and the display) is a workaround. It may be a perfectly good workaround for many applications, but it's still a workaround. If you are having to talk to it using any sort of serial protocol then it's an even worse workaround than a parallel one as you have an instant bottleneck.

You can address every pixel on the 4k screen if you want to, but it will ages to update a single screen. You can tell the display device to move or draw a complete sprite in a very short length of time, but now you have to program both the display device in something or other and the MMBasic device. It's far simpler to do the lot on a Raspberry Pi and learn Python.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 01:54pm 16 Jan 2023
Copy link to clipboard 
Print this post

You don't address _any_ pixels, _ever_.

You nominate an object that already exists on the Android device and command whatever action that you would like to perform.

Move, resize, fade-in, fade-out, rotate, change colour, etc., etc.


Craig
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 02:05pm 16 Jan 2023
Copy link to clipboard 
Print this post

  Tinine said  You don't address _any_ pixels, _ever_.

You nominate an object that already exists on the Android device and command whatever action that you would like to perform.

Move, resize, fade-in, fade-out, rotate, change colour, etc., etc.


Craig

That ASSUMES the above is all anyone wants, but it isn't.

It may be enough for some, however.

John
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 02:18pm 16 Jan 2023
Copy link to clipboard 
Print this post

Ages ago I wrote a special driver for one of the MMbasic family that could use a Raspberry Pi as a high res HDMI screen by passing it the MMBasic drawing primitives (Drawrectangle and DrawBitmap) - nobody ever used it
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 03:06pm 16 Jan 2023
Copy link to clipboard 
Print this post

  matherp said  Ages ago I wrote a special driver for one of the MMbasic family that could use a Raspberry Pi as a high res HDMI screen by passing it the MMBasic drawing primitives (Drawrectangle and DrawBitmap) - nobody ever used it


No kidding, so similar concept? Using serial comms?  

Hmmm, just thinking about a general purpose Android app for this.

Craig
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 03:22pm 16 Jan 2023
Copy link to clipboard 
Print this post

  Quote  Using serial comms?

No 8-bit parallel
 
scruss
Regular Member

Joined: 20/09/2021
Location: Canada
Posts: 91
Posted: 05:12pm 17 Jan 2023
Copy link to clipboard 
Print this post

  Mixtel90 said  Generally there isn't a need for 4k displays in BASIC, I don't think. You could use a Raspberry Pi as an intelligent display and send it commands using I2c, SPI, a COM port or home brew parallel interface. The Pi could then grab images from its SD card and display them as required. You might also be able to send it something like teletext commands if you create the appropriate software for the Pi.


Matrix Brandy is a BASIC interpreter that can handle 4K graphics on Linux, and also supports Teletext and (with a lot of work) Tek vector graphics. It's a BBC BASIC dialect, so will be incredibly familiar to some and very slightly weird to others.

I suspect that the BBC BASIC for SDL 2.0 interpreter might support high-resolution graphics too.
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 09:07pm 17 Jan 2023
Copy link to clipboard 
Print this post

Android front-ends are the only way to go....period.

I use other displays with the Mites but only for non-critical purposes, like one would use an LED indicator.

A HMI? You don't want to die.

I just took delivery of a piece of equipment that only cost me the trucking expense. To the previous owner, it was a boat anchor because the proprietary front-end died and is no-longer supported. It's getting my Android+RP2040+Prop-2 and I'll flip it for £50K. New owner will never have to suffer such BS.

I was over at John Deere, Waterloo IA, a factory that dwarfs most airports.
There is no walking, it's all electric vehicles. We drove by this huge piece of equipment, only 3 years old and I immediately picked up on the fact that the Siemens front end had a desktop PC Monitor and keyboard hanging off it.
My host explained that although JD has "more money than god", they had a problem paying $17,000 for just a monitor and membrane keypad. Yeah no sh*t.

But the brainwashed, moronic, pocket-protector, control engineers still parrot "but, but it, it, it's industrial"

Sooo pathetic  
 
     Page 2 of 2    
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025