Just Call Me Koko 5 лет назад
Родитель
Сommit
cc891457ce
4 измененных файлов с 7 добавлено и 6 удалено
  1. 1 1
      README.md
  2. 3 3
      esp32_marauder/Display.h
  3. 3 2
      esp32_marauder/LedInterface.cpp
  4. BIN
      pictures/diy.png

+ 1 - 1
README.md

@@ -63,7 +63,7 @@ You can check out the marauder article written [here](https://www.hackster.io/ne
 - Save PCAP files to SD card
 
 # Do It Yourself
-
+<p align="center"><img alt="Marauder logo" src="https://github.com/justcallmekoko/ESP32Marauder/blob/master/pictures/diy.png?raw=true" width="300"></p>
 ## Hardware
 This project requires the following hardware in order to work:
 - Any ESP32 Development Board

+ 3 - 3
esp32_marauder/Display.h

@@ -13,8 +13,8 @@
 
 #include <TFT_eSPI.h>
 
-#define TFT_SHIELD
-//#define TFT_DIY
+//#define TFT_SHIELD
+#define TFT_DIY
 
 #define SCREEN_WIDTH 240
 #define SCREEN_HEIGHT 320
@@ -59,7 +59,7 @@ class Display
     TFT_eSPI tft = TFT_eSPI();
     TFT_eSprite img = TFT_eSprite(&tft);
     TFT_eSPI_Button key[BUTTON_ARRAY_LEN];
-    String version_number = "v0.6.6";
+    String version_number = "v0.6.7";
 
     bool printing = false;
     bool loading = false;

+ 3 - 2
esp32_marauder/LedInterface.cpp

@@ -6,12 +6,13 @@ LedInterface::LedInterface() {
 
 void LedInterface::RunSetup() {
   Serial.println("Setting neopixel to black...");
+  strip.setBrightness(0);
   strip.begin();
-  strip.setBrightness(50);
   strip.setPixelColor(0, strip.Color(0, 0, 0));
   strip.show();
   delay(100);
-  strip.setPixelColor(0, strip.Color(255, 0, 0));
+  strip.setBrightness(50);
+  strip.setPixelColor(0, strip.Color(0, 0, 0));
   strip.show();
   this->initTime = millis();
 }

BIN
pictures/diy.png