Update LED

This commit is contained in:
Just Call Me Koko
2020-06-18 19:47:42 -04:00
parent 6c3a0d30b7
commit cc891457ce
4 changed files with 7 additions and 6 deletions

View File

@@ -63,7 +63,7 @@ You can check out the marauder article written [here](https://www.hackster.io/ne
- Save PCAP files to SD card - Save PCAP files to SD card
# Do It Yourself # 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 ## Hardware
This project requires the following hardware in order to work: This project requires the following hardware in order to work:
- Any ESP32 Development Board - Any ESP32 Development Board

View File

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

View File

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

BIN
pictures/diy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB