From bd584b5da075d7f46b4026c5af5478b33ada0a31 Mon Sep 17 00:00:00 2001 From: Stefan Kremser Date: Fri, 27 Apr 2018 16:40:30 +0200 Subject: [PATCH] New DSTIKE board configs --- .../A_config.h | 91 +++++++++++++++++++ .../README.md | 18 ++++ configs/DSTIKE_Deauther_Boy/A_config.h | 80 ++++++++++++++++ configs/DSTIKE_Deauther_Boy/README.md | 18 ++++ 4 files changed, 207 insertions(+) create mode 100644 configs/DSTIKE_D-duino_with_LED_Ring_Shield/A_config.h create mode 100644 configs/DSTIKE_D-duino_with_LED_Ring_Shield/README.md create mode 100644 configs/DSTIKE_Deauther_Boy/A_config.h create mode 100644 configs/DSTIKE_Deauther_Boy/README.md diff --git a/configs/DSTIKE_D-duino_with_LED_Ring_Shield/A_config.h b/configs/DSTIKE_D-duino_with_LED_Ring_Shield/A_config.h new file mode 100644 index 0000000..8d573b5 --- /dev/null +++ b/configs/DSTIKE_D-duino_with_LED_Ring_Shield/A_config.h @@ -0,0 +1,91 @@ +#ifndef config_h +#define config_h + +// ===== DISPLAY LIBRARY ===== // +#include +#include +#include "SH1106Wire.h" +#include "SSD1306Wire.h" +#include "SH1106Spi.h" +#include "SSD1306Spi.h" +// =========================== // + +// ===================== LED CONFIG ==================== // +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Uncomment the type of LED you're using + Only one of them can be defined at a time! + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +//#define DIGITAL_LED +//#define RGB_LED +#define NEOPIXEL_LED + +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Adjust following settings for your type of LED + you can ignore the rest of the #define's + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +// === Settings for Digital LED === // +#define LED_ENABLE_R true +#define LED_ENABLE_G false +#define LED_ENABLE_B true + +// === Settings for Digital LED and RGB LED === // +#define LED_CATHODE false // common ground (GND) +#define LED_PIN_R 16 // NodeMCU on-board LED +#define LED_PIN_G 0 +#define LED_PIN_B 2 // ESP-12 LED + +// === Settings for RGB LED and Neopixel LED === // +#define LED_MODE_BRIGHTNESS 10 // brightness of LED modes +#define LED_DYNAMIC_BRIGHTNESS true // brightness in scan mode depending on packet rate and deauths per second + +// === Settings for Neopixel LED === // +#define LED_NEOPIXEL_NUM 12 +#define LED_NEOPIXEL_PIN 15 + +// Parameter 1 = number of pixels in strip +// Parameter 2 = Arduino pin number (most are valid) +// Parameter 3 = pixel type flags, add together as needed: +// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) +// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) +// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) +// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2) +// NEO_RGBW Pixels are wired for RGBW bitstream (NeoPixel RGBW products) +#define LED_NEOPIXEL Adafruit_NeoPixel(LED_NEOPIXEL_NUM, LED_NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800) + +// ===================== DISPLAY CONFIG ==================== // +#define USE_DISPLAY true // default display setting + +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Adjust the pins to match your setup + Comment out the buttons you don't use. + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +#define BUTTON_UP 12 +#define BUTTON_DOWN 13 +#define BUTTON_A 14 + +//#define BUTTON_LEFT 12 +//#define BUTTON_RIGHT 13 +//#define BUTTON_B 10 + +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Uncomment the type of display you're using + Only one of them can be defined at a time! + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + 0x3c = I2C address + SDA = GPIO 5 (D1) + SCL/SCK = GPIO 4 (D2) */ +//#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 + +/* RST = GPIO 5 (D1) + DC = GPIO 4 (D2) + CS = GPIO 15 (D8) or GND + SCK/SCL = GPIO 14 (D5) + 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 SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI + +//#define FLIP_DIPLAY // uncomment that to flip the display vertically +// ========================================================= // + +#endif \ No newline at end of file diff --git a/configs/DSTIKE_D-duino_with_LED_Ring_Shield/README.md b/configs/DSTIKE_D-duino_with_LED_Ring_Shield/README.md new file mode 100644 index 0000000..10d6a88 --- /dev/null +++ b/configs/DSTIKE_D-duino_with_LED_Ring_Shield/README.md @@ -0,0 +1,18 @@ +# DSTIKE D-duino-b-v5 with the LED Ring Shield + +| | | +| - | - | +| LED Type | Neopixel (WS2812) | +| LED Pin | GPIO 15 | +| Number of LEDs | 12 | +| Display and buttons enabled | YES | +| Display Driver | SH1106 | +| Display SDA | GPIO 5 (D1) | +| Display SCL | GPIO 4 (D2) | +| Flip Display | No | +| Button Up |GPIO 12 | +| Button Down | GPIO 13 | +| Button Left | Disabled | +| Button Right | Disabled | +| Button A | GPIO 14 | +| Button B |Disabled | \ No newline at end of file diff --git a/configs/DSTIKE_Deauther_Boy/A_config.h b/configs/DSTIKE_Deauther_Boy/A_config.h new file mode 100644 index 0000000..48e2342 --- /dev/null +++ b/configs/DSTIKE_Deauther_Boy/A_config.h @@ -0,0 +1,80 @@ +#ifndef config_h +#define config_h + +// ===== DISPLAY LIBRARY ===== // +#include +#include +#include "SH1106Wire.h" +#include "SSD1306Wire.h" +#include "SH1106Spi.h" +#include "SSD1306Spi.h" +// =========================== // + +// ===================== LED CONFIG ==================== // +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Uncomment the type of LED you're using + Only one of them can be defined at a time! + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +//#define DIGITAL_LED +//#define RGB_LED +#define NEOPIXEL_LED + +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Adjust following settings for your type of LED + you can ignore the rest of the #define's + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +// === Settings for Digital LED === // +#define LED_ENABLE_R true +#define LED_ENABLE_G false +#define LED_ENABLE_B true + +// === Settings for Digital LED and RGB LED === // +#define LED_CATHODE false // common ground (GND) +#define LED_PIN_R 16 // NodeMCU on-board LED +#define LED_PIN_G 0 +#define LED_PIN_B 2 // ESP-12 LED + +// === Settings for RGB LED and Neopixel LED === // +#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 + +// === Settings for Neopixel LED === // +#define LED_NEOPIXEL_NUM 1 +#define LED_NEOPIXEL_PIN 15 +// 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) + +// ===================== DISPLAY CONFIG ==================== // +#define USE_DISPLAY true // default display setting + +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Adjust the pins to match your setup + Comment out the buttons you don't use. + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ +#define BUTTON_UP 10 +#define BUTTON_DOWN 9 +#define BUTTON_LEFT 0 +#define BUTTON_RIGHT 13 +#define BUTTON_A 14 +#define BUTTON_B 12 + +/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + Uncomment the type of display you're using + 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 SH1106Wire display = SH1106Wire(0x3c, 5, 4); // for 1.3" OLED + +/* RST = GPIO 5 (D1) + DC = GPIO 4 (D2) + CS = GPIO 15 (D8) or GND + SCK/SCL = GPIO 14 (D5) + 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 SH1106Spi display = SH1106Spi(5, 4, 15); // for 1.3" OLED with SPI + +//#define FLIP_DIPLAY // uncomment that to flip the display vertically +// ========================================================= // + +#endif diff --git a/configs/DSTIKE_Deauther_Boy/README.md b/configs/DSTIKE_Deauther_Boy/README.md new file mode 100644 index 0000000..f13a423 --- /dev/null +++ b/configs/DSTIKE_Deauther_Boy/README.md @@ -0,0 +1,18 @@ +# DSTIKE Deauther Boy + +| | | +| - | - | +| LED Type | Neopixel (WS2812) | +| LED Pin | GPIO 15 | +| Number of LEDs | 1 | +| Display and buttons enabled | YES | +| Display Driver | SH1106 | +| Display SDA | GPIO 5 (D1) | +| Display SCL | GPIO 4 (D2) | +| Flip Display | No | +| Button Up |GPIO 10 | +| Button Down | GPIO 9 | +| Button Left | GPIO 0 | +| Button Right | GPIO 13 | +| Button A | GPIO 14 | +| Button B |GPIO 12 | \ No newline at end of file