| Posted 27/03/13 at 03:11 AM||Reply with quote #101 |
You can use the Gallery library included in the Serial_LCD Library Suite to display one image from a collection.
Please use the example Gallery_main and refer to the tutorial available at http://embeddedcomputing.weebly.com/gallery.html
| Posted 27/03/13 at 01:40 PM||Reply with quote #102 |
|@avenue33 Thanks for joining in to the conversation! I would like to start over, because I didn't do a very good job describing what I am trying to do. Briefly, I would like to migrate images created for widgets such as meters in Visi over to the original SGC world.|
The gallery in your library works great for *.dat/*.gci files created in Graphics Composer (GC), and I am making full use of that functionality. For example, I can individually display big pictures of the letters of the alphabet and individual numbers 0 - 10, and shapes (square, circle, etc.) that are each over one inch high.
I was hoping the *.dat/*.gci files created by Visi had the same structure as the files from GC, so I could use a series of images in the same way.
I am trying to create a series of images (a meter over the range of 0 to 110) using Workshop4 Visi and then select an individual "frame" to display using your gallery. For example the frame with the pointer at 50, when my input variable is at 50 percent.
Unfortunately, when I initialize the meter file (which contains 101 images of the meter, along with an unknown number of images for two leddigit widgets) using:
pixCount = myMeter.begin(&myLCD,"meter");
picCount has a value of 3 (for the 3 objects in the meter file) rather than over 100 images I expected.
One response indicated Visi creates movies, rather than individual frames. However, the 4DGL code generated in Visi clearly shows that an individual frame can be displayed. When I try to display the first frame in the meter file using:
I get the whole series of possible meter frames from 0 to 100 displayed on the screen, just like a movie. How do I show an individual frame? Is there any documentation that shows how images are stored differently than "movies" in the dat/gci files? Many thanks!
| Posted 15/04/13 at 09:29 PM||Reply with quote #103 |
4D Systems has launched new screens and a major update of its Workshop 4 IDE with an outstanding feature: ViSi-Genie
provides a graphical environment to design a user interface in just a couple of minutes.
The new serial connection SPE2 mode is not compatible with SGC, making the Serial_LCD Library Suite obsolete. 4D Systems provides new libraries for the Arduino, PixAxe, Raspberry Pi, Pascal and C platforms.