Skip to content

Commit bd584b5

Browse files
author
Stefan Kremser
committed
New DSTIKE board configs
1 parent 11768ee commit bd584b5

File tree

4 files changed

+207
-0
lines changed

4 files changed

+207
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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 true // brightness in scan mode depending on packet rate and deauths per second
40+
41+
// === Settings for Neopixel LED === //
42+
#define LED_NEOPIXEL_NUM 12
43+
#define LED_NEOPIXEL_PIN 15
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 true // 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 12
63+
#define BUTTON_DOWN 13
64+
#define BUTTON_A 14
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+
0x3c = I2C address
75+
SDA = GPIO 5 (D1)
76+
SCL/SCK = GPIO 4 (D2) */
77+
//#define DEAUTHER_DISPLAY SSD1306Wire display = SSD1306Wire(0x3c, 5, 4); // for 0.96" OLED
78+
#define DEAUTHER_DISPLAY SH1106Wire display = SH1106Wire(0x3c, 5, 4); // for 1.3" OLED
79+
80+
/* RST = GPIO 5 (D1)
81+
DC = GPIO 4 (D2)
82+
CS = GPIO 15 (D8) or GND
83+
SCK/SCL = GPIO 14 (D5)
84+
SDA/MOSI = GPIO 13 (D7) */
85+
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
86+
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
87+
88+
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
89+
// ========================================================= //
90+
91+
#endif
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# DSTIKE D-duino-b-v5 with the LED Ring Shield
2+
3+
| | |
4+
| - | - |
5+
| LED Type | Neopixel (WS2812) |
6+
| LED Pin | GPIO 15 |
7+
| Number of LEDs | 12 |
8+
| Display and buttons enabled | YES |
9+
| Display Driver | SH1106 |
10+
| Display SDA | GPIO 5 (D1) |
11+
| Display SCL | GPIO 4 (D2) |
12+
| Flip Display | No |
13+
| Button Up |GPIO 12 |
14+
| Button Down | GPIO 13 |
15+
| Button Left | Disabled |
16+
| Button Right | Disabled |
17+
| Button A | GPIO 14 |
18+
| Button B |Disabled |
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 15
44+
// if it doesn't work try changing NEO_GRB to NEO_GRBW
45+
#define LED_NEOPIXEL Adafruit_NeoPixel(LED_NEOPIXEL_NUM, LED_NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800)
46+
47+
// ===================== DISPLAY CONFIG ==================== //
48+
#define USE_DISPLAY true // default display setting
49+
50+
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
51+
Adjust the pins to match your setup
52+
Comment out the buttons you don't use.
53+
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
54+
#define BUTTON_UP 10
55+
#define BUTTON_DOWN 9
56+
#define BUTTON_LEFT 0
57+
#define BUTTON_RIGHT 13
58+
#define BUTTON_A 14
59+
#define BUTTON_B 12
60+
61+
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
62+
Uncomment the type of display you're using
63+
Only one of them can be defined at a time!
64+
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
65+
*/
66+
//#define DEAUTHER_DISPLAY SSD1306Wire display = SSD1306Wire(0x3c, 5, 4); // for 0.96" OLED
67+
#define DEAUTHER_DISPLAY SH1106Wire display = SH1106Wire(0x3c, 5, 4); // for 1.3" OLED
68+
69+
/* RST = GPIO 5 (D1)
70+
DC = GPIO 4 (D2)
71+
CS = GPIO 15 (D8) or GND
72+
SCK/SCL = GPIO 14 (D5)
73+
SDA/MOSI = GPIO 13 (D7) */
74+
//#define DEAUTHER_DISPLAY SSD1306Spi display = SSD1306Spi display = SSD1306Spi(5, 4, 15); // for 0.96" OLED with SPI
75+
//#define DEAUTHER_DISPLAY SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI
76+
77+
//#define FLIP_DIPLAY // uncomment that to flip the display vertically
78+
// ========================================================= //
79+
80+
#endif
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# DSTIKE Deauther Boy
2+
3+
| | |
4+
| - | - |
5+
| LED Type | Neopixel (WS2812) |
6+
| LED Pin | GPIO 15 |
7+
| Number of LEDs | 1 |
8+
| Display and buttons enabled | YES |
9+
| Display Driver | SH1106 |
10+
| Display SDA | GPIO 5 (D1) |
11+
| Display SCL | GPIO 4 (D2) |
12+
| Flip Display | No |
13+
| Button Up |GPIO 10 |
14+
| Button Down | GPIO 9 |
15+
| Button Left | GPIO 0 |
16+
| Button Right | GPIO 13 |
17+
| Button A | GPIO 14 |
18+
| Button B |GPIO 12 |

0 commit comments

Comments
 (0)