This example uses the drawing functions of the VidorGFX library to recreate on screen our beloved logo, in a stylized form. The functions available for the graphics generation are the same of the Adafruit_GFX library.
Include the Vidor_GFX library, which is part of VidorGraphics.#include "VidorGraphics.h"
#include "Vidor_GFX.h"
To manage graphics on screen you need to create an object with Vidor_GFX vdgfx;
then all the functions will refer to that object. In our example we draw circles, rectangles and lines, with some added text. The screen resolution used for this example is 640 x 480 pixels and all the primitives are used with this coordinate system as reference.
The complete sketch is below and you find it in the examples from Libraries, under VidorGraphics :
For more details on the Arduino MKR Vidor 4000, see the product page.
Last revision 2018/07/22 by SM