mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-14 02:29:59 +01:00
Updated all config files
This commit is contained in:
@@ -74,8 +74,8 @@
|
|||||||
CS = GPIO 15 (D8) or GND
|
CS = GPIO 15 (D8) or GND
|
||||||
SCK/SCL = GPIO 14 (D5)
|
SCK/SCL = GPIO 14 (D5)
|
||||||
SDA/MOSI = GPIO 13 (D7) */
|
SDA/MOSI = GPIO 13 (D7) */
|
||||||
//#define DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
||||||
//#define DISPLAY SH1106Spi display = SH1106Spi(5, 4); // for 1.3" OLED with SPI
|
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
|
||||||
|
|
||||||
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
||||||
// ========================================================= //
|
// ========================================================= //
|
||||||
|
|||||||
@@ -74,8 +74,8 @@
|
|||||||
CS = GPIO 15 (D8) or GND
|
CS = GPIO 15 (D8) or GND
|
||||||
SCK/SCL = GPIO 14 (D5)
|
SCK/SCL = GPIO 14 (D5)
|
||||||
SDA/MOSI = GPIO 13 (D7) */
|
SDA/MOSI = GPIO 13 (D7) */
|
||||||
//#define DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
||||||
//#define DISPLAY SH1106Spi display = SH1106Spi(5, 4); // for 1.3" OLED with SPI
|
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
|
||||||
|
|
||||||
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
||||||
// ========================================================= //
|
// ========================================================= //
|
||||||
|
|||||||
@@ -74,8 +74,8 @@
|
|||||||
CS = GPIO 15 (D8) or GND
|
CS = GPIO 15 (D8) or GND
|
||||||
SCK/SCL = GPIO 14 (D5)
|
SCK/SCL = GPIO 14 (D5)
|
||||||
SDA/MOSI = GPIO 13 (D7) */
|
SDA/MOSI = GPIO 13 (D7) */
|
||||||
//#define DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
||||||
//#define DISPLAY SH1106Spi display = SH1106Spi(5, 4); // for 1.3" OLED with SPI
|
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
|
||||||
|
|
||||||
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
||||||
// ========================================================= //
|
// ========================================================= //
|
||||||
|
|||||||
@@ -74,8 +74,8 @@
|
|||||||
CS = GPIO 15 (D8) or GND
|
CS = GPIO 15 (D8) or GND
|
||||||
SCK/SCL = GPIO 14 (D5)
|
SCK/SCL = GPIO 14 (D5)
|
||||||
SDA/MOSI = GPIO 13 (D7) */
|
SDA/MOSI = GPIO 13 (D7) */
|
||||||
//#define DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
||||||
//#define DISPLAY SH1106Spi display = SH1106Spi(5, 4); // for 1.3" OLED with SPI
|
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
|
||||||
|
|
||||||
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
||||||
// ========================================================= //
|
// ========================================================= //
|
||||||
|
|||||||
@@ -72,8 +72,8 @@
|
|||||||
CS = GPIO 15 (D8) or GND
|
CS = GPIO 15 (D8) or GND
|
||||||
SCK/SCL = GPIO 14 (D5)
|
SCK/SCL = GPIO 14 (D5)
|
||||||
SDA/MOSI = GPIO 13 (D7) */
|
SDA/MOSI = GPIO 13 (D7) */
|
||||||
//#define DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
||||||
//#define DISPLAY SH1106Spi display = SH1106Spi(5, 4); // for 1.3" OLED with SPI
|
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
|
||||||
|
|
||||||
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
||||||
// ========================================================= //
|
// ========================================================= //
|
||||||
|
|||||||
@@ -1,82 +1,82 @@
|
|||||||
#ifndef config_h
|
#ifndef config_h
|
||||||
#define config_h
|
#define config_h
|
||||||
|
|
||||||
// ===== DISPLAY LIBRARY ===== //
|
// ===== DISPLAY LIBRARY ===== //
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
#include "SH1106Wire.h"
|
#include "SH1106Wire.h"
|
||||||
#include "SSD1306Wire.h"
|
#include "SSD1306Wire.h"
|
||||||
#include "SH1106Spi.h"
|
#include "SH1106Spi.h"
|
||||||
#include "SSD1306Spi.h"
|
#include "SSD1306Spi.h"
|
||||||
// =========================== //
|
// =========================== //
|
||||||
|
|
||||||
// ===================== LED CONFIG ==================== //
|
// ===================== LED CONFIG ==================== //
|
||||||
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||||
Uncomment the type of LED you're using
|
Uncomment the type of LED you're using
|
||||||
Only one of them can be defined at a time!
|
Only one of them can be defined at a time!
|
||||||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
|
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
|
||||||
#define DIGITAL_LED
|
#define DIGITAL_LED
|
||||||
//#define RGB_LED
|
//#define RGB_LED
|
||||||
//#define NEOPIXEL_LED
|
//#define NEOPIXEL_LED
|
||||||
|
|
||||||
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||||
Adjust following settings for your type of LED
|
Adjust following settings for your type of LED
|
||||||
you can ignore the rest of the #define's
|
you can ignore the rest of the #define's
|
||||||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
|
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
|
||||||
// === Settings for Digital LED === //
|
// === Settings for Digital LED === //
|
||||||
#define LED_ENABLE_R true
|
#define LED_ENABLE_R true
|
||||||
#define LED_ENABLE_G false
|
#define LED_ENABLE_G false
|
||||||
#define LED_ENABLE_B true
|
#define LED_ENABLE_B true
|
||||||
|
|
||||||
// === Settings for Digital LED and RGB LED === //
|
// === Settings for Digital LED and RGB LED === //
|
||||||
#define LED_CATHODE false // common ground (GND)
|
#define LED_CATHODE false // common ground (GND)
|
||||||
#define LED_PIN_R 16 // NodeMCU on-board LED
|
#define LED_PIN_R 16 // NodeMCU on-board LED
|
||||||
#define LED_PIN_G 0
|
#define LED_PIN_G 0
|
||||||
#define LED_PIN_B 2 // ESP-12 LED
|
#define LED_PIN_B 2 // ESP-12 LED
|
||||||
|
|
||||||
// === Settings for RGB LED and Neopixel LED === //
|
// === Settings for RGB LED and Neopixel LED === //
|
||||||
#define LED_MODE_BRIGHTNESS 10 // brightness of LED modes
|
#define LED_MODE_BRIGHTNESS 10 // brightness of LED modes
|
||||||
#define LED_DYNAMIC_BRIGHTNESS false // brightness in scan mode depending on packet rate and deauths per second
|
#define LED_DYNAMIC_BRIGHTNESS false // brightness in scan mode depending on packet rate and deauths per second
|
||||||
|
|
||||||
// === Settings for Neopixel LED === //
|
// === Settings for Neopixel LED === //
|
||||||
#define LED_NEOPIXEL_NUM 1
|
#define LED_NEOPIXEL_NUM 1
|
||||||
#define LED_NEOPIXEL_PIN 9
|
#define LED_NEOPIXEL_PIN 9
|
||||||
// if it doesn't work try changing NEO_GRB to NEO_GRBW
|
// if it doesn't work try changing NEO_GRB to NEO_GRBW
|
||||||
#define LED_NEOPIXEL Adafruit_NeoPixel(LED_NEOPIXEL_NUM, LED_NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
|
#define LED_NEOPIXEL Adafruit_NeoPixel(LED_NEOPIXEL_NUM, LED_NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
|
||||||
|
|
||||||
// ===================== DISPLAY CONFIG ==================== //
|
// ===================== DISPLAY CONFIG ==================== //
|
||||||
#define USE_DISPLAY false // default display setting
|
#define USE_DISPLAY false // default display setting
|
||||||
|
|
||||||
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||||
Adjust the pins to match your setup
|
Adjust the pins to match your setup
|
||||||
Comment out the buttons you don't use.
|
Comment out the buttons you don't use.
|
||||||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
|
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
|
||||||
#define BUTTON_UP 14
|
#define BUTTON_UP 14
|
||||||
#define BUTTON_DOWN 12
|
#define BUTTON_DOWN 12
|
||||||
#define BUTTON_A 13
|
#define BUTTON_A 13
|
||||||
|
|
||||||
//#define BUTTON_LEFT 12
|
//#define BUTTON_LEFT 12
|
||||||
//#define BUTTON_RIGHT 13
|
//#define BUTTON_RIGHT 13
|
||||||
//#define BUTTON_B 10
|
//#define BUTTON_B 10
|
||||||
|
|
||||||
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||||
Uncomment the type of display you're using
|
Uncomment the type of display you're using
|
||||||
Only one of them can be defined at a time!
|
Only one of them can be defined at a time!
|
||||||
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||||
*/
|
*/
|
||||||
#define DEAUTHER_DISPLAY SSD1306Wire display = SSD1306Wire(0x3c, 5, 4); // for 0.96" OLED
|
#define DEAUTHER_DISPLAY SSD1306Wire display = SSD1306Wire(0x3c, 5, 4); // for 0.96" OLED
|
||||||
//#define DEAUTHER_DISPLAY SH1106Wire display = SH1106Wire(0x3c, 5, 4); // for 1.3" OLED
|
//#define DEAUTHER_DISPLAY SH1106Wire display = SH1106Wire(0x3c, 5, 4); // for 1.3" OLED
|
||||||
|
|
||||||
/* RST = GPIO 5 (D1)
|
/* RST = GPIO 5 (D1)
|
||||||
DC = GPIO 4 (D2)
|
DC = GPIO 4 (D2)
|
||||||
CS = GPIO 15 (D8) or GND
|
CS = GPIO 15 (D8) or GND
|
||||||
SCK/SCL = GPIO 14 (D5)
|
SCK/SCL = GPIO 14 (D5)
|
||||||
SDA/MOSI = GPIO 13 (D7) */
|
SDA/MOSI = GPIO 13 (D7) */
|
||||||
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
|
||||||
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
|
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
|
||||||
|
|
||||||
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
|
||||||
// ========================================================= //
|
// ========================================================= //
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user