[GH-ISSUE #1652] Deauther 2.6.2 on ESP8266 operating Buttons not working ? #936

Open
opened 2026-02-28 00:05:32 +03:00 by kerem · 4 comments
Owner

Originally created by @yashgunjal04 on GitHub (Jun 14, 2023).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1652

the config is default:
// ===== BUTTONS ===== //
#define BUTTON_UP 14 // D5
#define BUTTON_DOWN 12 // D6
#define BUTTON_A 2 // D4
#define BUTTON_B 0 // D3
but connecting to the GND is without any change.
The terminal command : screen mode buttontest
shows only false on all 4 buttons.
there is no difference between D5,D6 or D3 connected to the GND or not

Originally created by @yashgunjal04 on GitHub (Jun 14, 2023). Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1652 the config is default: // ===== BUTTONS ===== // #define BUTTON_UP 14 // D5 #define BUTTON_DOWN 12 // D6 #define BUTTON_A 2 // D4 #define BUTTON_B 0 // D3 but connecting to the GND is without any change. The terminal command : screen mode buttontest shows only false on all 4 buttons. there is no difference between D5,D6 or D3 connected to the GND or not
Author
Owner

@welcome[bot] commented on GitHub (Jun 14, 2023):

Congrats on opening your first issue on this repository! 🎉
This is a automated message to help you avoid common pitfalls when asking for help online.
👉 Be sure to:
* 🇬🇧 Communicate in English so everybody can understand you
* 📖 Have a look at the Wiki and README for information
* 🔍 Search for similar issues (open and closed)
* ✍️ Provide enough information to understand, recreate and help out with your problem
* ℹ️ Let us know if you find a solution and please share it with us
* 📕 Close the issue when your problem has been solved

<!-- gh-comment-id:1591710117 --> @welcome[bot] commented on GitHub (Jun 14, 2023): Congrats on opening your first issue on this repository! 🎉<br> This is a automated message to help you avoid common pitfalls when asking for help online.<br> 👉 Be sure to:<br> * 🇬🇧 Communicate in English so everybody can understand you<br> * 📖 Have a look at the [Wiki](https://github.com/spacehuhntech/esp8266_deauther/wiki) and [README](https://github.com/SpacehuhnTech/esp8266_deauther/blob/v2/README.md) for information<br> * 🔍 Search for similar [issues (open and closed)](https://github.com/SpacehuhnTech/esp8266_deauther/issues?q=is%3Aissue+)<br> * ✍️ Provide enough information to understand, recreate and help out with your problem<br> * ℹ️ Let us know if you find a solution and please share it with us<br> * 📕 Close the issue when your problem has been solved
Author
Owner

@nwsynx commented on GitHub (Jul 11, 2023):

same shit, but buttons works on esp8266_deauther_2.6.1_DISPLAY_EXAMPLE_I2C or SPI

<!-- gh-comment-id:1630421640 --> @nwsynx commented on GitHub (Jul 11, 2023): same shit, but buttons works on esp8266_deauther_2.6.1_DISPLAY_EXAMPLE_I2C or SPI
Author
Owner

@shakri0 commented on GitHub (Jul 22, 2023):

K

<!-- gh-comment-id:1646679823 --> @shakri0 commented on GitHub (Jul 22, 2023): K
Author
Owner

@mohammad3a1eh commented on GitHub (Apr 5, 2024):

Hello dear friends
I had the same problem, I made some changes in the files and now it seems to be working

You need to open the A_config.h file

In the first step, I commented this line #define DEFAULT_ESP8266 and instead I got this from the comment #define WEMOS_D1_MINI because I use "wemos mini d1"

I commented all the lines below

#ifndef BUTTON_UP
  #define BUTTON_UP 255
#endif // ifndef BUTTON_UP

#ifndef BUTTON_DOWN
  #define BUTTON_DOWN 255
#endif // ifndef BUTTON_DOWN

#ifndef BUTTON_A
  #define BUTTON_A 255
#endif // ifndef BUTTON_A

#ifndef BUTTON_B
  #define BUTTON_B 255
#endif // ifndef BUTTON_B

I added the following lines

#define USE_DISPLAY true
#define DISPLAY_TIMEOUT 600
#define FLIP_DIPLAY false

#define SSD1306_I2C

#define I2C_ADDR 0x3C
#define I2C_SDA 5
#define I2C_SCL 4

#define BUTTON_UP 14
#define BUTTON_DOWN 12
#define BUTTON_A 13
#define BUTTON_B 15

Because my Oled was i2c, I used #define SSD1306_I2C line, otherwise you can remove other lines from the comment that are next to the same line.

Just make sure to enter the pin numbers correctly, change the values from 255 to the desired base

Pay attention that the bases for spi are different, just look carefully at the comments in the source code and you will understand

I'm sorry for the many explanations and my bad English, my language is not English
I hope I can help people who have the same problem

<!-- gh-comment-id:2040367895 --> @mohammad3a1eh commented on GitHub (Apr 5, 2024): Hello dear friends I had the same problem, I made some changes in the files and now it seems to be working You need to open the `A_config.h` file In the first step, I commented this line `#define DEFAULT_ESP8266` and instead I got this from the comment `#define WEMOS_D1_MINI` because I use "wemos mini d1" I commented all the lines below ```c #ifndef BUTTON_UP #define BUTTON_UP 255 #endif // ifndef BUTTON_UP #ifndef BUTTON_DOWN #define BUTTON_DOWN 255 #endif // ifndef BUTTON_DOWN #ifndef BUTTON_A #define BUTTON_A 255 #endif // ifndef BUTTON_A #ifndef BUTTON_B #define BUTTON_B 255 #endif // ifndef BUTTON_B ``` I added the following lines ```c #define USE_DISPLAY true #define DISPLAY_TIMEOUT 600 #define FLIP_DIPLAY false #define SSD1306_I2C #define I2C_ADDR 0x3C #define I2C_SDA 5 #define I2C_SCL 4 #define BUTTON_UP 14 #define BUTTON_DOWN 12 #define BUTTON_A 13 #define BUTTON_B 15 ``` Because my Oled was i2c, I used `#define SSD1306_I2C` line, otherwise you can remove other lines from the comment that are next to the same line. Just make sure to enter the pin numbers correctly, change the values from `255` to the desired base Pay attention that the bases for spi are different, just look carefully at the comments in the source code and you will understand I'm sorry for the many explanations and my bad English, my language is not English I hope I can help people who have the same problem
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/esp8266_deauther#936
No description provided.