Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : OPTION LCDPANEL  VIRTUAL_C

Posted: 12:59pm
01 May 2024
Copy link to clipboard
Teo1
Newbie

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
 
Posted: 01:09pm
01 May 2024
Copy link to clipboard
matherp
Guru

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
 
Posted: 01:36pm
01 May 2024
Copy link to clipboard
Teo1
Newbie

Thanks for the reply ,
Please , can you send me an example ?
Thanks a lot,
Teo
 
Posted: 01:01am
02 May 2024
Copy link to clipboard
phil99
Guru


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"
 
Posted: 12:15pm
02 May 2024
Copy link to clipboard
Teo1
Newbie

Thank you very much,
Teo
 


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

© JAQ Software 2024