Skip to content

Commit 599c8a2

Browse files
author
Stefan Kremser
committed
DSTIKE USB Deauther config
1 parent 7f70797 commit 599c8a2

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#ifndef config_h
2+
#define config_h
3+
4+
// ===== DISPLAY LIBRARY ===== //
5+
#include <Wire.h>
6+
#include <SPI.h>
7+
#include "SH1106Wire.h"
8+
#include "SSD1306Wire.h"
9+
#include "SH1106Spi.h"
10+
#include "SSD1306Spi.h"
11+
// =========================== //
12+
13+
// ===================== LED CONFIG ==================== //
14+
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
15+
Uncomment the type of LED you're using
16+
Only one of them can be defined at a time!
17+
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
18+
//#define DIGITAL_LED
19+
//#define RGB_LED
20+
#define NEOPIXEL_LED
21+
22+
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
23+
Adjust following settings for your type of LED
24+
you can ignore the rest of the #define's
25+
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
26+
// === Settings for Digital LED === //
27+
#define LED_ENABLE_R true
28+
#define LED_ENABLE_G false
29+
#define LED_ENABLE_B true
30+
31+
// === Settings for Digital LED and RGB LED === //
32+
#define LED_CATHODE false // common ground (GND)
33+
#define LED_PIN_R 16 // NodeMCU on-board LED
34+
#define LED_PIN_G 0
35+
#define LED_PIN_B 2 // ESP-12 LED
36+
37+
// === Settings for RGB LED and Neopixel LED === //
38+
#define LED_MODE_BRIGHTNESS 10 // brightness of LED modes
39+
#define LED_DYNAMIC_BRIGHTNESS false // brightness in scan mode depending on packet rate and deauths per second
40+
41+
// === Settings for Neopixel LED === //
42+
#define LED_NEOPIXEL_NUM 1
43+
#define LED_NEOPIXEL_PIN 4
44+
45+
// Parameter 1 = number of pixels in strip
46+
// Parameter 2 = Arduino pin number (most are valid)
47+
// Parameter 3 = pixel type flags, add together as needed:
48+
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
49+
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
50+
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
51+
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
52+
// NEO_RGBW Pixels are wired for RGBW bitstream (NeoPixel RGBW products)
53+
#define LED_NEOPIXEL Adafruit_NeoPixel(LED_NEOPIXEL_NUM, LED_NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
54+
55+
// ===================== DISPLAY CONFIG ==================== //
56+
#define USE_DISPLAY false // default display setting
57+
58+
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
59+
Adjust the pins to match your setup
60+
Comment out the buttons you don't use.
61+
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
62+
//#define BUTTON_UP 14
63+
//#define BUTTON_DOWN 12
64+
//#define BUTTON_A 13
65+
66+
//#define BUTTON_LEFT 12
67+
//#define BUTTON_RIGHT 13
68+
//#define BUTTON_B 10
69+
70+
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
71+
Uncomment the type of display you're using
72+
Only one of them can be defined at a time!
73+
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
74+
*/
75+
#define DEAUTHER_DISPLAY SSD1306Wire display = SSD1306Wire(0x3c, 5, 4); // for 0.96" OLED
76+
//#define DEAUTHER_DISPLAY SH1106Wire display = SH1106Wire(0x3c, 5, 4); // for 1.3" OLED
77+
78+
/* RST = GPIO 5 (D1)
79+
DC = GPIO 4 (D2)
80+
CS = GPIO 15 (D8) or GND
81+
SCK/SCL = GPIO 14 (D5)
82+
SDA/MOSI = GPIO 13 (D7) */
83+
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
84+
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
85+
86+
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
87+
// ========================================================= //
88+
89+
#endif
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# DSTIKE Deauther v3 & DSTIKE NodeMCU-07 v2
2+
3+
| | |
4+
| - | - |
5+
| LED Type | Neopixel (WS2812b) |
6+
| LED Pin | GPIO 4 |
7+
| Number of LEDs | 1 |
8+
| Display and buttons enabled | NO |
9+
| Display Driver | SH1106 |
10+
| Display SDA | GPIO 5 (D1) |
11+
| Display SCL | GPIO 4 (D2) |
12+
| Flip Display | NO |
13+
| Button Up | disabled |
14+
| Button Down | disabled |
15+
| Button Left | disabled |
16+
| Button Right | disabled |
17+
| Button A | disabled |
18+
| Button B | disabled |

0 commit comments

Comments
 (0)