mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
909 B
50 lines
909 B
#ifndef DEFINES_h
|
|
#define DEFINES_h
|
|
|
|
#include "configuration.h"
|
|
|
|
#define BUTTONS_ON_SCREEN 7
|
|
#define DELAY_LVGL_TASK 10
|
|
|
|
#define STATE_OFF HIGH
|
|
#define STATE_ON LOW
|
|
|
|
// EEPROM position (0 and 1 are reserved)
|
|
#define PREF_WAIT_RELAY "wait_relay"
|
|
|
|
// Colors
|
|
#define COLOR_WHITE 0xFFFFFF
|
|
#define COLOR_BLACK 0
|
|
#define COLOR_RED 0xFF0000
|
|
#define COLOR_BLUE 0x0077FF
|
|
#define COLOR_BLUE_LIGHT 0x22A8FD
|
|
#define COLOR_GREY 0x8F8F8F
|
|
#define BUTTON_BACKGROUND 0x1B1B1B
|
|
|
|
// Device Elecrow 5 & 7 inches
|
|
#define SD_MOSI 11
|
|
#define SD_MISO 13
|
|
#define SD_SCK 12
|
|
#define SD_CS 10
|
|
|
|
#define I2S_DOUT 17
|
|
#define I2S_BCLK 42
|
|
#define I2S_LRC 18
|
|
|
|
#define GPIO_D 38
|
|
|
|
#define UART_RX 44
|
|
#define UART_TX 43
|
|
#define I2C_SDA 19
|
|
#define I2C_SCL 20
|
|
#define LCD_Backlight 2
|
|
|
|
// Other defines
|
|
#define DELAY_MAIN_TASK 10
|
|
#define DELAY_REFRESH_VIEW 10
|
|
#define OLED_RESET -1
|
|
|
|
#define TFT_BL 2
|
|
#define LGFX_USE_V1
|
|
|
|
#endif
|
|
|