mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-05 20:40:25 -08:00
Update LED
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
Normal file
BIN
pictures/diy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Reference in New Issue
Block a user