mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-12 07:40:58 -08:00
Bring develop up to date with master (#158)
* Trims serial input for PuTTY * v0.9.7 Release * Re-release v0.9.7 * add OG-Marauder enclosure (#124) * add Marauder Mini Case and rearrange files * Add OG-Marauder Enclosure * Add more cmd, clean serial, add ascii * Add attack command to CLI * Add SSID commands * print eapol when received * Add more sniff and attack commands * Fix OTA update shutdown via CLI * Add help command * Release v0.9.8 * Add channel arg to pmkid sniff * Add targeted ap beacon spam * Save a beacon packet * AP obfuscation attack * Update README.md * Send deauth for pmkid * PMKID deauth optional * Release v0.9.9 * v0.9.10 Release * Select all and flipper LED * Add screen buffer for mini * Fix screen buffer formatting * packet monitor eapol scan formatting * Release v0.9.11 * Update README.md * Add settings command and SD CS * Release v0.9.12 * Fix mini update menu * Release v0.9.13-rc1 * Fix stopscan and sniffpmkid * fix sniffpmkid SSID visible (#140) * Add rssi and setting reset * Release v0.9.13 * Create build_push.yml * Add libraries * Fix library red * Spelling * Adjust ref for SwitchLib * Add ESP32 Board * Update board fqdn * Specify package version for ESP32 * Add compiler switches * Update compile args * Lib args * Fix multdefs * Update version of arduino test compile * Separate lib install * Jobs together * Fix warnings flag * Add muldefs arg to cli * Update build_push.yml * Specify build property * Full build property string * Fix quote placement * Add find and replace * Update build_push.yml * Update build_push.yml * Update build_push.yml * Cat platform file * Update build_push.yml * Add install boards * Update build_push.yml * Add bash for loop for platform * Update build_push.yml * find and replace * Add muldefs to ESP32 and ESP32S2 * Add display bins * minimal spiffs * Minimal SPIFFS syntax * More Minimal SPIFFS syntax * Add more build params * Add upload artifacts * Add TFT Setup files * Add configure TFT_eSPI * Configure libs and configs * Fix sed file locations * Update build_push.yml * Update build_push.yml * Look for TFT_eSPI * Update start location for find * Update locations of libraries * Fix path to TFT_eSPI * Compile for other platforms * Create draft release * Update README.md * Only allow manual workflow * Fix blank PCAPs * Switch configs * Specify NimBLE 1.2.0 * No "v" in tag * Fix SD card init issues Copy SD lib from arduino-esp32 v2.0.4 to replace SD lib from arduino-esp32 v2.0.0-rc2 * Pull arduino-esp32 v2.0.4 * Replace 2.0.0-rc1 SD lib with 2.0.4 * Fix path * Gramatical (#155) * Add raw cap and manual deauth * Revert to flipper * Change color * Change color again * define white * Update issue templates * Create config.yml * Specify dst mac again * Update README.md * Create .gitignore Co-authored-by: Gregor Hermani <53179565+trisp3ar@users.noreply.github.com> Co-authored-by: improving-rigmarole <17810364+improving-rigmarole@users.noreply.github.com> Co-authored-by: Ayden <butera.ayden@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e2b52f74e5
commit
907a2af570
@@ -14,6 +14,10 @@ void Display::RunSetup()
|
||||
|
||||
// Need to declare new
|
||||
display_buffer = new LinkedList<String>();
|
||||
|
||||
#ifdef SCREEN_BUFFER
|
||||
screen_buffer = new LinkedList<String>();
|
||||
#endif
|
||||
|
||||
tft.init();
|
||||
tft.setRotation(0); // Portrait
|
||||
@@ -24,10 +28,10 @@ void Display::RunSetup()
|
||||
|
||||
#ifdef TFT_SHIELD
|
||||
uint16_t calData[5] = { 275, 3494, 361, 3528, 4 }; // tft.setRotation(0); // Portrait with TFT Shield
|
||||
Serial.println(F("Using TFT Shield"));
|
||||
//Serial.println(F("Using TFT Shield"));
|
||||
#else if defined(TFT_DIY)
|
||||
uint16_t calData[5] = { 339, 3470, 237, 3438, 2 }; // tft.setRotation(0); // Portrait with DIY TFT
|
||||
Serial.println(F("Using TFT DIY"));
|
||||
//Serial.println(F("Using TFT DIY"));
|
||||
#endif
|
||||
tft.setTouch(calData);
|
||||
|
||||
@@ -36,9 +40,9 @@ void Display::RunSetup()
|
||||
//tft.fillScreen(TFT_BLACK);
|
||||
clearScreen();
|
||||
|
||||
Serial.println("SPI_FREQUENCY: " + (String)SPI_FREQUENCY);
|
||||
Serial.println("SPI_READ_FREQUENCY:" + (String)SPI_READ_FREQUENCY);
|
||||
Serial.println("SPI_TOUCH_FREQUENCY: " + (String)SPI_TOUCH_FREQUENCY);
|
||||
//Serial.println("SPI_FREQUENCY: " + (String)SPI_FREQUENCY);
|
||||
//Serial.println("SPI_READ_FREQUENCY:" + (String)SPI_READ_FREQUENCY);
|
||||
//Serial.println("SPI_TOUCH_FREQUENCY: " + (String)SPI_TOUCH_FREQUENCY);
|
||||
|
||||
#ifdef KIT
|
||||
pinMode(KIT_LED_BUILTIN, OUTPUT);
|
||||
@@ -247,35 +251,62 @@ void Display::touchToExit()
|
||||
// Function to just draw the screen black
|
||||
void Display::clearScreen()
|
||||
{
|
||||
Serial.println(F("clearScreen()"));
|
||||
//Serial.println(F("clearScreen()"));
|
||||
tft.fillScreen(TFT_BLACK);
|
||||
tft.setCursor(0, 0);
|
||||
}
|
||||
|
||||
#ifdef SCREEN_BUFFER
|
||||
void Display::scrollScreenBuffer(bool down) {
|
||||
// Scroll screen normal direction (Up)
|
||||
if (!down) {
|
||||
this->screen_buffer->shift();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void Display::displayBuffer(bool do_clear)
|
||||
{
|
||||
if (this->display_buffer->size() > 0)
|
||||
{
|
||||
delay(1);
|
||||
|
||||
|
||||
while (display_buffer->size() > 0)
|
||||
{
|
||||
xPos = 0;
|
||||
if ((display_buffer->size() > 0) && (!loading))
|
||||
{
|
||||
printing = true;
|
||||
delay(print_delay_1);
|
||||
yDraw = scroll_line(TFT_RED);
|
||||
tft.setCursor(xPos, yDraw);
|
||||
tft.setTextColor(TFT_GREEN, TFT_BLACK);
|
||||
tft.print(display_buffer->shift());
|
||||
printing = false;
|
||||
delay(print_delay_2);
|
||||
}
|
||||
if (!tteBar)
|
||||
blank[(18+(yStart - TOP_FIXED_AREA) / TEXT_HEIGHT)%19] = xPos;
|
||||
else
|
||||
blank[(18+(yStart - TOP_FIXED_AREA_2) / TEXT_HEIGHT)%19] = xPos;
|
||||
|
||||
#ifndef SCREEN_BUFFER
|
||||
xPos = 0;
|
||||
if ((display_buffer->size() > 0) && (!loading))
|
||||
{
|
||||
printing = true;
|
||||
delay(print_delay_1);
|
||||
yDraw = scroll_line(TFT_RED);
|
||||
tft.setCursor(xPos, yDraw);
|
||||
tft.setTextColor(TFT_GREEN, TFT_BLACK);
|
||||
tft.print(display_buffer->shift());
|
||||
printing = false;
|
||||
delay(print_delay_2);
|
||||
}
|
||||
if (!tteBar)
|
||||
blank[(18+(yStart - TOP_FIXED_AREA) / TEXT_HEIGHT)%19] = xPos;
|
||||
else
|
||||
blank[(18+(yStart - TOP_FIXED_AREA_2) / TEXT_HEIGHT)%19] = xPos;
|
||||
#else
|
||||
xPos = 0;
|
||||
if (this->screen_buffer->size() >= MAX_SCREEN_BUFFER)
|
||||
this->scrollScreenBuffer();
|
||||
|
||||
screen_buffer->add(display_buffer->shift());
|
||||
|
||||
for (int i = 0; i < this->screen_buffer->size(); i++) {
|
||||
tft.setCursor(xPos, (i * 12) + (SCREEN_HEIGHT / 6));
|
||||
for (int x = 0; x < TFT_WIDTH / CHAR_WIDTH; x++)
|
||||
tft.print(" ");
|
||||
tft.setCursor(xPos, (i * 12) + (SCREEN_HEIGHT / 6));
|
||||
tft.setTextColor(TFT_GREEN, TFT_BLACK);
|
||||
tft.print(this->screen_buffer->get(i));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -289,7 +320,7 @@ void Display::showCenterText(String text, int y)
|
||||
|
||||
void Display::initScrollValues(bool tte)
|
||||
{
|
||||
Serial.println(F("initScrollValues()"));
|
||||
//Serial.println(F("initScrollValues()"));
|
||||
yDraw = YMAX - BOT_FIXED_AREA - TEXT_HEIGHT;
|
||||
|
||||
xPos = 0;
|
||||
@@ -345,10 +376,10 @@ int Display::scroll_line(uint32_t color) {
|
||||
|
||||
// Function to setup hardware scroll for TFT screen
|
||||
void Display::setupScrollArea(uint16_t tfa, uint16_t bfa) {
|
||||
Serial.println(F("setupScrollArea()"));
|
||||
Serial.println(" tfa: " + (String)tfa);
|
||||
Serial.println(" bfa: " + (String)bfa);
|
||||
Serial.println("yStart: " + (String)this->yStart);
|
||||
//Serial.println(F("setupScrollArea()"));
|
||||
//Serial.println(" tfa: " + (String)tfa);
|
||||
//Serial.println(" bfa: " + (String)bfa);
|
||||
//Serial.println("yStart: " + (String)this->yStart);
|
||||
#ifndef MARAUDER_MINI
|
||||
tft.writecommand(ILI9341_VSCRDEF); // Vertical scroll definition
|
||||
tft.writedata(tfa >> 8); // Top Fixed Area line count
|
||||
@@ -399,9 +430,9 @@ void Display::drawJpeg(const char *filename, int xpos, int ypos) {
|
||||
// render the image onto the screen at given coordinates
|
||||
jpegRender(xpos, ypos);
|
||||
}
|
||||
else {
|
||||
Serial.println(F("Jpeg file format not supported!"));
|
||||
}
|
||||
//else {
|
||||
// Serial.println(F("Jpeg file format not supported!"));
|
||||
//}
|
||||
}
|
||||
|
||||
void Display::setupDraw() {
|
||||
@@ -421,7 +452,7 @@ void Display::drawStylus()
|
||||
boolean pressed = tft.getTouch(&x, &y);
|
||||
|
||||
if ((x <= 10) && (y <= 10) && (pressed)) {
|
||||
Serial.println(F("Exit draw function"));
|
||||
//Serial.println(F("Exit draw function"));
|
||||
this->draw_tft = false;
|
||||
this->exit_draw = true;
|
||||
return;
|
||||
@@ -554,7 +585,7 @@ void Display::jpegRender(int xpos, int ypos) {
|
||||
// Print information decoded from the Jpeg image
|
||||
//====================================================================================
|
||||
void Display::jpegInfo() {
|
||||
|
||||
/*
|
||||
Serial.println("===============");
|
||||
Serial.println("JPEG image info");
|
||||
Serial.println("===============");
|
||||
@@ -568,7 +599,7 @@ void Display::jpegInfo() {
|
||||
Serial.print ("MCU height :"); Serial.println(JpegDec.MCUHeight);
|
||||
Serial.println("===============");
|
||||
Serial.println("");
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
//====================================================================================
|
||||
|
||||
Reference in New Issue
Block a user