Skip to content

Commit 2b7d03f

Browse files
author
Stefan Kremser
committed
Added copyright notice on display version
1 parent 02ce826 commit 2b7d03f

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

esp8266_deauther/Settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern NameList nameList;
3939
#define ledPinAdr 1106
4040

4141
#define checkNumAdr 2001
42-
#define checkNum 73
42+
#define checkNum 15
4343

4444
class Settings
4545
{

esp8266_deauther/esp8266_deauther.ino

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,14 @@ void resetSettings() {
437437
}
438438

439439
void setup() {
440-
441-
Serial.begin(115200);
442440

443-
if(debug){
444-
delay(2000);
445-
Serial.println("\nStarting...\n");
446-
}
441+
// for the Pocket WiFi ESP8266
442+
/*
443+
pinMode(16, OUTPUT);
444+
digitalWrite(16, LOW);
445+
*/
446+
447+
Serial.begin(115200);
447448

448449
attackMode = "START";
449450

@@ -515,13 +516,26 @@ void setup() {
515516

516517
#ifdef USE_DISPLAY
517518
display.init();
518-
display.setFont(Roboto_Mono_8);
519519
display.flipScreenVertically();
520520
pinMode(upBtn, INPUT_PULLUP);
521521
pinMode(downBtn, INPUT_PULLUP);
522522
pinMode(selectBtn, INPUT_PULLUP);
523523
if(displayBtn == 0) pinMode(displayBtn, INPUT);
524524
else pinMode(displayBtn, INPUT_PULLUP);
525+
526+
display.clear();
527+
display.setFont(ArialMT_Plain_16);
528+
display.drawString(0, 0, "ESP8266");
529+
display.setFont(ArialMT_Plain_24);
530+
display.drawString(0, 16, "Deauther");
531+
display.setFont(ArialMT_Plain_10);
532+
display.drawString(0, 40, "Copyright (c) 2017");
533+
display.drawString(0, 50, "Stefan Kremser");
534+
display.display();
535+
536+
display.setFont(Roboto_Mono_8);
537+
538+
delay(2000);
525539
#endif
526540

527541
#ifdef resetPin
@@ -531,10 +545,18 @@ void setup() {
531545

532546
pinMode(settings.ledPin, OUTPUT);
533547
digitalWrite(settings.ledPin, HIGH);
548+
549+
if(debug){
550+
Serial.println("\nStarting...\n");
551+
#ifndef USE_DISPLAY
552+
delay(2000);
553+
#endif
554+
}
534555

535556
}
536557

537558
void loop() {
559+
538560
if (clientScan.sniffing) {
539561
if (clientScan.stop()) startWifi();
540562
} else {

0 commit comments

Comments
 (0)