-
Notifications
You must be signed in to change notification settings - Fork 9
/
Setup.hpp
53 lines (40 loc) · 1.86 KB
/
Setup.hpp
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
53
/** ### Features ### */
// #define CIRCUITOS_FREERTOS // Uncomment this line if you're compiling for a core with FreeRTOS
/** Task and synchronization classes are only available if we're compiling with FreeRTOS */
#ifdef CIRCUITOS_FREERTOS
#define CIRCUITOS_TASK
#define CIRCUITOS_MUTEX
#define CIRCUITOS_BINARY_SEMAPHORE
#define CIRCUITOS_SEMAPHORE
#define CIRCUITOS_QUEUE
#endif
/** Use the LovyanGFX library (https://github.com/lovyan03/LovyanGFX) instead of TFT_eSPI
* The library has better performance on higher-res screens (320x240 and above). */
// #define CIRCUITOS_LOVYANGFX
/** Zoom factor for the display buffer, 2 means every pixel in the buffer equates to 4 pixels on-screen. */
// #define CIRCUITOS_LOVYANGFX_ZOOM 1
/** Whether NVS (non-volatile storage) is present in the core. Enables NVS variant of Settings */
// #define CIRCUITOS_NVS
/** Whether LittleFS library is available. Enables LittleFS variant of Settings */
// #define CIRCUITOS_LITTLEFS
/** Whether global `tone` and `noTone` functions are available. Required for Audio/Piezo */
// #define CIRCUITOS_TONE
/** Enable Piezo using DAC */
// #define CIRCUITOS_PIEZO_DAC
#define CIRCUITOS_PIEZO_DAC_TIMER 0 // Timer # to use
#define CIRCUITOS_PIEZO_DAC_SD 13 // DAC shutdown IO pin
/** Enable Piezo for using PWM */
// #define CIRCUITOS_PIEZO_PWM
#define CIRCUITOS_PIEZO_PWM_CHANNEL 0
/** Context transitions for devices with little RAM won't keep both context sprites in RAM at the same time. */
// #define CIRCUITOS_LOWRAM
/** ### Device drivers ### */
// #define CIRCUITOS_ICM20948
// #define CIRCUITOS_MPU6050
// #define CIRCUITOS_LEDMATRIX
// #define CIRCUITOS_SERIALFLASH
/** Using u8g2 fonts uses up some RAM and PROGMEM for every font used.
* The U8g2_for_TFT_eSPI library is used. (https://github.com/Bodmer/U8g2_for_TFT_eSPI)*/
// #define CIRCUITOS_U8G2FONTS
/** Using WiFi **/
// #define CIRCUITOS_NET