Page 1 of 1

Basic Arduino EVE Demo

Posted: Tue Mar 02, 2021 3:41 pm
by Henry
Basic EVE Arduino UNO Example Code

Written for an EVE2 or EVE3 or EVE4 running on an Arduino UNO.

Code is located on GitHub
https://github.com/MatrixOrbital/EVE-Basic-Demo-Arduino

This code when executed will display MATRIX ORBITAL text and a circle switching between blue and red.
Basic-EVE-Demo-2.jpg
Basic-EVE-Demo-2.jpg (113.45 KiB) Viewed 8979 times
This code will illustrate:
  • EVE initilization
  • Set colour
  • Draw circle
  • Write text
please note, this example does not utilize touch

------------------------------------------------------------------------------------------

Hardware Requirements

Designed for Matrix Orbital EVE2/3/4 SPI TFT Displays
https://www.matrixorbital.com/ftdi-eve
EVE.png
EVE.png (246.54 KiB) Viewed 10816 times

Scoodo EVE TFT SHIELD for Arduino
https://www.matrixorbital.com/eve2-shield
scoodo.jpg
scoodo.jpg (96.25 KiB) Viewed 10816 times

LIBRARY

This code makes use of the Matrix Orbital EVE2 Library found here:

https://github.com/MatrixOrbital/EVE2-Library

While a copy of the library files (Eve2_81x.c and Eve2_81x.h) is included here, it will not be updated. For the most up to date files please use the files from the link above.

EVE SPI TFT connected to a Scoodo SHIELD
Arduino_EVE_800x.jpg
Arduino_EVE_800x.jpg (181.76 KiB) Viewed 10821 times

Support Forums

http://www.lcdforums.com/forums/viewforum.php?f=45

Re: Basic Arduino EVE Demo

Posted: Mon Apr 11, 2022 8:51 am
by prestonpressure
The library found here: https://github.com/MatrixOrbital/EVE2-Library does not provide for a very basic function of changing the line width. The functions listed below are located in the Eve2_81x.h file, but there is no way that I can find to change the line width. There is a LINE_WIDTH command in Section 4.32 of the Programmers Guide, but I do not find this in the library. Is there another way to change the width of a line?

// Primitive Type Reference Definitions - FT81x Series Programmers Guide Section 4.5 - Table 6
#define BITMAPS 1
#define POINTS 2
#define LINES 3
#define LINE_STRIP 4
#define EDGE_STRIP_R 5
#define EDGE_STRIP_L 6
#define EDGE_STRIP_A 7
#define EDGE_STRIP_B 8
#define RECTS 9

Re: Basic Arduino EVE Demo

Posted: Tue Apr 12, 2022 3:24 pm
by Ray
you can find the definition for line width over here

https://github.com/MatrixOrbital/EVE2-L ... 81x.h#L365

Re: Basic Arduino EVE Demo

Posted: Fri Apr 22, 2022 2:49 pm
by prestonpressure
Thank you! Apparently I had an older version of this library.