mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-23 15:10:06 +01:00
Added copyright notice on display version
This commit is contained in:
@@ -39,7 +39,7 @@ extern NameList nameList;
|
|||||||
#define ledPinAdr 1106
|
#define ledPinAdr 1106
|
||||||
|
|
||||||
#define checkNumAdr 2001
|
#define checkNumAdr 2001
|
||||||
#define checkNum 73
|
#define checkNum 15
|
||||||
|
|
||||||
class Settings
|
class Settings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -438,12 +438,13 @@ void resetSettings() {
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
|
||||||
Serial.begin(115200);
|
// for the Pocket WiFi ESP8266
|
||||||
|
/*
|
||||||
|
pinMode(16, OUTPUT);
|
||||||
|
digitalWrite(16, LOW);
|
||||||
|
*/
|
||||||
|
|
||||||
if(debug){
|
Serial.begin(115200);
|
||||||
delay(2000);
|
|
||||||
Serial.println("\nStarting...\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
attackMode = "START";
|
attackMode = "START";
|
||||||
|
|
||||||
@@ -515,13 +516,26 @@ void setup() {
|
|||||||
|
|
||||||
#ifdef USE_DISPLAY
|
#ifdef USE_DISPLAY
|
||||||
display.init();
|
display.init();
|
||||||
display.setFont(Roboto_Mono_8);
|
|
||||||
display.flipScreenVertically();
|
display.flipScreenVertically();
|
||||||
pinMode(upBtn, INPUT_PULLUP);
|
pinMode(upBtn, INPUT_PULLUP);
|
||||||
pinMode(downBtn, INPUT_PULLUP);
|
pinMode(downBtn, INPUT_PULLUP);
|
||||||
pinMode(selectBtn, INPUT_PULLUP);
|
pinMode(selectBtn, INPUT_PULLUP);
|
||||||
if(displayBtn == 0) pinMode(displayBtn, INPUT);
|
if(displayBtn == 0) pinMode(displayBtn, INPUT);
|
||||||
else pinMode(displayBtn, INPUT_PULLUP);
|
else pinMode(displayBtn, INPUT_PULLUP);
|
||||||
|
|
||||||
|
display.clear();
|
||||||
|
display.setFont(ArialMT_Plain_16);
|
||||||
|
display.drawString(0, 0, "ESP8266");
|
||||||
|
display.setFont(ArialMT_Plain_24);
|
||||||
|
display.drawString(0, 16, "Deauther");
|
||||||
|
display.setFont(ArialMT_Plain_10);
|
||||||
|
display.drawString(0, 40, "Copyright (c) 2017");
|
||||||
|
display.drawString(0, 50, "Stefan Kremser");
|
||||||
|
display.display();
|
||||||
|
|
||||||
|
display.setFont(Roboto_Mono_8);
|
||||||
|
|
||||||
|
delay(2000);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef resetPin
|
#ifdef resetPin
|
||||||
@@ -532,9 +546,17 @@ void setup() {
|
|||||||
pinMode(settings.ledPin, OUTPUT);
|
pinMode(settings.ledPin, OUTPUT);
|
||||||
digitalWrite(settings.ledPin, HIGH);
|
digitalWrite(settings.ledPin, HIGH);
|
||||||
|
|
||||||
|
if(debug){
|
||||||
|
Serial.println("\nStarting...\n");
|
||||||
|
#ifndef USE_DISPLAY
|
||||||
|
delay(2000);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
if (clientScan.sniffing) {
|
if (clientScan.sniffing) {
|
||||||
if (clientScan.stop()) startWifi();
|
if (clientScan.stop()) startWifi();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user