rename some files
This commit is contained in:
parent
d5831e6fbc
commit
e2416cb81e
@ -58,7 +58,7 @@
|
|||||||
//#include <User_Setups/Setup22_TTGO_T4_v1.3.h> // Setup file for ESP32 and TTGO T4 version 1.3
|
//#include <User_Setups/Setup22_TTGO_T4_v1.3.h> // Setup file for ESP32 and TTGO T4 version 1.3
|
||||||
//#include <User_Setups/Setup23_TTGO_TM.h> // Setup file for ESP32 and TTGO TM ST7789 SPI bus TFT
|
//#include <User_Setups/Setup23_TTGO_TM.h> // Setup file for ESP32 and TTGO TM ST7789 SPI bus TFT
|
||||||
//#include <User_Setups/Setup24_ST7789.h> // Setup file for DSTIKE/ESP32/ESP8266 configured for ST7789 240 x 240
|
//#include <User_Setups/Setup24_ST7789.h> // Setup file for DSTIKE/ESP32/ESP8266 configured for ST7789 240 x 240
|
||||||
#ifdef NERDMINER_LED
|
#ifdef NERDMINER_T_DISPLAY_V1
|
||||||
#include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
|
#include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
|
||||||
#endif
|
#endif
|
||||||
//#include <User_Setups/Setup26_TTGO_T_Wristband.h> // Setup file for ESP32 and TTGO T-Wristband ST7735 SPI bus TFT
|
//#include <User_Setups/Setup26_TTGO_T_Wristband.h> // Setup file for ESP32 and TTGO T-Wristband ST7735 SPI bus TFT
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
globallib_dir = lib
|
globallib_dir = lib
|
||||||
default_envs = NerdminerV2-Led, ESP32-devKitv1
|
default_envs = NerdminerV2-T-Display_V1, ESP32-devKitv1
|
||||||
|
|
||||||
[env:NerminerV2]
|
[env:NerminerV2]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
@ -161,7 +161,7 @@ lib_deps =
|
|||||||
mathertel/OneButton @ ^2.0.3
|
mathertel/OneButton @ ^2.0.3
|
||||||
arduino-libraries/NTPClient
|
arduino-libraries/NTPClient
|
||||||
|
|
||||||
[env:NerdminerV2-Led]
|
[env:NerdminerV2-T-Display_V1]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = ttgo-lora32-v1
|
board = ttgo-lora32-v1
|
||||||
framework = arduino
|
framework = arduino
|
||||||
@ -172,7 +172,7 @@ upload_speed = 115200
|
|||||||
board_build.partitions = huge_app.csv
|
board_build.partitions = huge_app.csv
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
-D NERDMINER_LED=1
|
-D NERDMINER_T_DISPLAY_V1=1
|
||||||
-D DEBUG_MINING=1
|
-D DEBUG_MINING=1
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#ifndef _LILYGO_TDISPLAY_LED_H
|
|
||||||
#define _LILYGO_TDISPLAY_LED_H
|
|
||||||
|
|
||||||
#define PIN_BUTTON_1 0
|
|
||||||
#define PIN_BUTTON_2 35
|
|
||||||
|
|
||||||
#define LED_DISPLAY
|
|
||||||
|
|
||||||
#endif
|
|
9
src/drivers/devices/lilygoV1TDisplay.h
Normal file
9
src/drivers/devices/lilygoV1TDisplay.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#ifndef _LILYGO_V1_TDISPLAY_H
|
||||||
|
#define _LILYGO_V1_TDISPLAY_H
|
||||||
|
|
||||||
|
#define PIN_BUTTON_1 0
|
||||||
|
#define PIN_BUTTON_2 35
|
||||||
|
|
||||||
|
#define V1_DISPLAY
|
||||||
|
|
||||||
|
#endif
|
@ -20,8 +20,8 @@ DisplayDriver *currentDisplayDriver = &dongleDisplayDriver;
|
|||||||
DisplayDriver *currentDisplayDriver = &t_qtDisplayDriver;
|
DisplayDriver *currentDisplayDriver = &t_qtDisplayDriver;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LED_DISPLAY
|
#ifdef V1_DISPLAY
|
||||||
DisplayDriver *currentDisplayDriver = &tDisplayLedDriver;
|
DisplayDriver *currentDisplayDriver = &tDisplayV1Driver;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize the display
|
// Initialize the display
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "../drivers.h"
|
#include "../drivers.h"
|
||||||
|
|
||||||
#ifdef LED_DISPLAY
|
#ifdef V1_DISPLAY
|
||||||
|
|
||||||
#include <TFT_eSPI.h>
|
#include <TFT_eSPI.h>
|
||||||
#include "media/images_240_135.h"
|
#include "media/images_240_135.h"
|
||||||
@ -218,7 +218,7 @@ void tDisplay_DoLedStuff(unsigned long frame)
|
|||||||
|
|
||||||
CyclicScreenFunction tDisplayCyclicScreens[] = {tDisplay_MinerScreen, tDisplay_ClockScreen, tDisplay_GlobalHashScreen};
|
CyclicScreenFunction tDisplayCyclicScreens[] = {tDisplay_MinerScreen, tDisplay_ClockScreen, tDisplay_GlobalHashScreen};
|
||||||
|
|
||||||
DisplayDriver tDisplayLedDriver = {
|
DisplayDriver tDisplayV1Driver = {
|
||||||
tDisplay_Init,
|
tDisplay_Init,
|
||||||
tDisplay_AlternateScreenState,
|
tDisplay_AlternateScreenState,
|
||||||
tDisplay_AlternateRotation,
|
tDisplay_AlternateRotation,
|
@ -13,8 +13,8 @@
|
|||||||
#include "devices/lilygoS3Dongle.h"
|
#include "devices/lilygoS3Dongle.h"
|
||||||
#elif defined(NERMINER_T_QT)
|
#elif defined(NERMINER_T_QT)
|
||||||
#include "devices/lilygoT_QT.h"
|
#include "devices/lilygoT_QT.h"
|
||||||
#elif defined(NERDMINER_LED)
|
#elif defined(NERDMINER_T_DISPLAY_V1)
|
||||||
#include "devices/lilygoTDisplayLed.h"
|
#include "devices/lilygoV1TDisplay.h"
|
||||||
#else
|
#else
|
||||||
#error "No device defined"
|
#error "No device defined"
|
||||||
#endif
|
#endif
|
||||||
@ -49,7 +49,7 @@ extern DisplayDriver tDisplayDriver;
|
|||||||
extern DisplayDriver amoledDisplayDriver;
|
extern DisplayDriver amoledDisplayDriver;
|
||||||
extern DisplayDriver dongleDisplayDriver;
|
extern DisplayDriver dongleDisplayDriver;
|
||||||
extern DisplayDriver t_qtDisplayDriver;
|
extern DisplayDriver t_qtDisplayDriver;
|
||||||
extern DisplayDriver tDisplayLedDriver;
|
extern DisplayDriver tDisplayV1Driver;
|
||||||
|
|
||||||
#define SCREENS_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
#define SCREENS_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user