-
Notifications
You must be signed in to change notification settings - Fork 36
/
ILI9341_due_config.h
52 lines (35 loc) · 1.64 KB
/
ILI9341_due_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
ILI9341_due_config.h - Arduino Due library for interfacing with ILI9341-based TFTs
Code: https://github.com/marekburiak/ILI9341_due
Documentation: http://marekburiak.github.io/ILI9341_due/
Copyright (c) 2015 Marek Buriak
*/
#ifndef _ILI9341_due_configH_
#define _ILI9341_due_configH_
// comment out the SPI mode you want to use (does not matter for AVR)
//#define ILI9341_SPI_MODE_NORMAL // uses SPI library
//#define ILI9341_SPI_MODE_EXTENDED // uses Extended SPI in Due, make sure you use pin 4, 10 or 52 for CS
#define ILI9341_SPI_MODE_DMA // uses DMA in Due
// set the clock divider
#if defined ARDUINO_SAM_DUE
#define ILI9341_SPI_CLKDIVIDER 2 // for Due
#elif defined ARDUINO_ARCH_AVR
#define ILI9341_SPI_CLKDIVIDER SPI_CLOCK_DIV2 // for Uno, Mega,...
#endif
// uncomment if you want to use SPI transactions. Uncomment it if the library does not work when used with other libraries.
//#define ILI_USE_SPI_TRANSACTION
// comment out if you do need to use scaled text. The text will draw then faster.
#define TEXT_SCALING_ENABLED
// default letter spacing
#define DEFAULT_LETTER_SPACING 2
// default line spacing
#define DEFAULT_LINE_SPACING 0
// sets the space between lines as part of the text
//#define LINE_SPACING_AS_PART_OF_LETTERS
// number representing the maximum angle (e.g. if 100, then if you pass in start=0 and end=50, you get a half circle)
// this can be changed with setArcParams function at runtime
#define DEFAULT_ARC_ANGLE_MAX 360
// rotational offset in degrees defining position of value 0 (-90 will put it at the top of circle)
// this can be changed with setAngleOffset function at runtime
#define DEFAULT_ANGLE_OFFSET -90
#endif