Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:15 17 May 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 : OPTION LCDPANEL  VIRTUAL_C

Author Message
Teo1
Newbie

Joined: 06/05/2023
Location: Romania
Posts: 12
Posted: 12:59pm 01 May 2024
Copy link to clipboard 
Print this post

Hi all,
Can someone tell me how I can use this "OPTION LCDPANEL VIRTUAL_C" ?
Will it create a virtual display on your PC screen?
Can I see what I'm drawing?  
Can I find an example of use somewhere?
Thanks in advance,
Teo
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8604
Posted: 01:09pm 01 May 2024
Copy link to clipboard 
Print this post

It allows you to create an image without a display connected and then you can save it to disk. The target use is for the WebMite to allow constructed images (E.g. graphs) to be embedded in web pages.
Edited 2024-05-01 23:10 by matherp
 
Teo1
Newbie

Joined: 06/05/2023
Location: Romania
Posts: 12
Posted: 01:36pm 01 May 2024
Copy link to clipboard 
Print this post

Thanks for the reply ,
Please , can you send me an example ?
Thanks a lot,
Teo
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1813
Posted: 01:01am 02 May 2024
Copy link to clipboard 
Print this post

OPTION LCDPANEL VIRTUAL_C
> OPTION list
PicoMite MMBasic Version 5.09.00RC3
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION CPUSPEED  420000 'KHz
OPTION DISPLAY 55, 155
OPTION LCDPANEL VIRTUAL_C
> list
'Make a virtual image - 320x240 4 bits/pixel
cls rgb(blue)
BOX 30, 20, 250, 150, 20, rgb(red), rgb(yellow)
CIRCLE 160, 120, 80, 10, 1.5, rgb(white), rgb(green)
TEXT 160, 120, "Test Image", "CM", 2, 2, rgb(magenta), rgb(myrtle)
save compressed image "Test Image.bmp"
> files "*.bmp"
A:/
00:21 01-01-2000       4472  Test Image.bmp
0 directories, 1 file, 15462400 bytes free
> xmodem s "Test Image.bmp"
>

On a WebMite you add the image name to a HTML so that it can be viewed elsewhere.
Or, as above use Xmodem to send it to an attached PC via a terminal program.

As the virtual display is the same as a PicoMiteVGA that is a good place to develop that part of your program.

In the WebMite manual see the section "Live Graphical Data in a WEB Page"
 
Teo1
Newbie

Joined: 06/05/2023
Location: Romania
Posts: 12
Posted: 12:15pm 02 May 2024
Copy link to clipboard 
Print this post

Thank you very much,
Teo
 
Print this page


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

© JAQ Software 2024