Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
BitMaker-hub authored Jan 22, 2024
2 parents d4e3a31 + dd635f1 commit a5b191f
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 18 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ Update NerdMiner firmware following same flashing steps but only using the file

After programming, you will only need to setup your Wifi and BTC address.

#### Wifi Configuration
Note: when BTC address of your selected wallet is not provided, mining will not be started.

#### Wifi Accesspoint


1. Connect to NerdMinerAP
- AP: NerdMinerAP
Expand All @@ -107,6 +110,7 @@ After programming, you will only need to setup your Wifi and BTC address.

1. Format a SD card using Fat32.
1. Create a file named "config.json" in your card's root, containing the the following structure. Adjust the settings to your needs:
```
{
"SSID": "myWifiSSID",
"WifiPW": "myWifiPassword",
Expand All @@ -117,6 +121,7 @@ After programming, you will only need to setup your Wifi and BTC address.
"Timezone": 2,
"SaveStats": false
}
```

1. Insert the SD card.
1. Hold down the "reset configurations" button as described below to reset the configurations and/or boot without settings in your nvmemory.
Expand Down
4 changes: 3 additions & 1 deletion lib/TFT_eSPI/User_Setup_Select.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@
//#include <User_Setups/Setup208_ESP32_S3_Box_Lite.h> // For the ESP32 S3 Box Lite (may also work with ESP32 S3 Box)

//#include <User_Setups/Setup209_LilyGo_T_Dongle_S3.h> // For the LilyGo T-Dongle S3 based ESP32 with ST7735 80 x 160 TFT
// #include <User_Setups/Setup210_LilyGo_T_Embed_S3.h> // For the LilyGo T-Embed S3 based ESP32S3 with ST7789 170 x 320 TFT
#ifdef LILYGO_S3_T_EMBED
#include <User_Setups/Setup210_LilyGo_T_Embed_S3.h> // For the LilyGo T-Embed S3 based ESP32S3 with ST7789 170 x 320 TFT
#endif
#ifdef NERMINER_T_QT
#include <User_Setups/Setup211_LilyGo_T_QT_Pro_S3.h> // For the LilyGo T-QT Pro S3 based ESP32S3 with GC9A01 128 x 128 TFT
#endif
Expand Down
45 changes: 41 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@

[platformio]
globallib_dir = lib

default_envs = M5Stick-C, esp32cam, ESP32-2432S028R, ESP32_2432S028_2USB, NerminerV2, ESP32-devKitv1, NerminerV2-S3-DONGLE, NerminerV2-S3-AMOLED, NerminerV2-T-QT, NerdminerV2-T-Display_V1, ESP32-2432S028R, M5-StampS3, ESP32-S3-devKitv1, ESP32-S3-mini-wemos, ESP32-S3-mini-weact, ESP32-C3-devKitmv1, ESP32-C3-super-mini


[env:M5Stick-C]
platform = espressif32
board = m5stick-c
Expand All @@ -29,16 +31,17 @@ build_flags =
-D M5STICK_C=1
;-D DEBUG_MINING=1
lib_deps =
https://github.com/takkaO/OpenFontRender
bblanchon/ArduinoJson@^6.21.2
https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
mathertel/OneButton @ ^2.0.3
arduino-libraries/NTPClient
M5StickC
Wire
lib_ignore =
TFT_eSPI

SD
SD_MMC
rm67162

;--------------------------------------------------------------------

[env:ESP32-S3-mini-wemos]
Expand Down Expand Up @@ -226,6 +229,39 @@ lib_deps =

;--------------------------------------------------------------------

[env:Lilygo-T-Embed]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_filters =
esp32_exception_decoder
time
log2file
board_build.arduino.memory_type = qio_opi
monitor_speed = 115200
upload_speed = 115200
# 2 x 4.5MB app, 6.875MB SPIFFS
;board_build.partitions = large_spiffs_16MB.csv
;board_build.partitions = default_8MB.csv
board_build.partitions = huge_app.csv
;board_build.partitions = default.csv
build_flags =
-D LV_LVGL_H_INCLUDE_SIMPLE
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-D LILYGO_S3_T_EMBED=1
;-D DEBUG_MINING=1
lib_deps =
https://github.com/takkaO/OpenFontRender
bblanchon/ArduinoJson@^6.21.2
https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
mathertel/OneButton @ ^2.0.3
arduino-libraries/NTPClient
;https://github.com/golden-guy/Arduino_wolfssl.git#v5.5.4

;--------------------------------------------------------------------

[env:ESP32-devKitv1]
platform = espressif32
board = esp32dev
Expand Down Expand Up @@ -504,7 +540,8 @@ board_build.partitions = huge_app.csv
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-D M5_STAMP_S3=1
-D ESP32RGB=1
-D RGB_LED_PIN=21
lib_deps =
bblanchon/ArduinoJson@^6.21.2
https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
Expand Down
4 changes: 2 additions & 2 deletions src/drivers/devices/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "lilygoS3Amoled.h"
#elif defined(NERMINER_S3_DONGLE)
#include "lilygoS3Dongle.h"
#elif defined(LILYGO_S3_T_EMBED)
#include "lilygoS3TEmbed.h"
#elif defined(ESP32_2432S028R)
#include "esp322432s028r.h"
#elif defined(ESP32_2432S028_2USB) // For another type of ESP32_2432S028 version with 2 USB connectors
Expand All @@ -23,8 +25,6 @@
#include "lilygoV1TDisplay.h"
#elif defined(ESP32_CAM)
#include "esp32CAM.h"
#elif defined(M5_STAMP_S3)
#include "m5StampS3.h"
#elif defined(ESP32RGB)
#include "esp32RGB.h"

Expand Down
9 changes: 9 additions & 0 deletions src/drivers/devices/lilygoS3TEmbed.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef _LILYGO_S3_T_EMBED_H
#define _LILYGO_S3_T_EMBED_H

#define PIN_BUTTON_1 0
#define PIN_ENABLE5V 46

#define T_DISPLAY

#endif
10 changes: 0 additions & 10 deletions src/drivers/devices/m5StampS3.h

This file was deleted.

4 changes: 4 additions & 0 deletions src/drivers/displays/tDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ TFT_eSprite background = TFT_eSprite(&tft); // Invoke library sprite
void tDisplay_Init(void)
{
tft.init();
#ifdef LILYGO_S3_T_EMBED
tft.setRotation(3);
#else
tft.setRotation(1);
#endif
tft.setSwapBytes(true); // Swap the colour byte order when rendering
background.createSprite(WIDTH, HEIGHT); // Background Sprite
background.setSwapBytes(true);
Expand Down

0 comments on commit a5b191f

Please sign in to comment.