Skip to content

Buttons not working with Deauther #1750

Closed
@BigPszemek

Description

Have you searched for existing (open and closed) issues describing the same problem?

Yes

Describe the error
The Buttons do not work with the deauther code but they do work with my code. I am in no way educated on the topic, and i dont really know what can be causing it. I assume its because i have connected it in a different way than what the code was written for.
I have tested the buttons with this code:

const int BUTTON_UP = 14;
const int BUTTON_DOWN = 12;
const int BUTTON_A = 13;

void setup() {
Serial.begin(115200);
pinMode(BUTTON_UP, INPUT_PULLUP);
pinMode(BUTTON_DOWN, INPUT_PULLUP);
pinMode(BUTTON_A, INPUT_PULLUP);
}

void loop() {
if (digitalRead(BUTTON_UP) == LOW) {
Serial.println("Button UP pressed");
}
if (digitalRead(BUTTON_DOWN) == LOW) {
Serial.println("Button DOWN pressed");
}
if (digitalRead(BUTTON_A) == LOW) {
Serial.println("Button A pressed");
}

delay(200); 

}
Video of the code working:
Screencast from 2024-11-02 19-01-35.webm

Expected behavior
Buttons should be working i guess

Screenshots
thats how it looks like(might be hard to read):
IMG_20241102_194702
and thats how the buttons are set up:
Screenshot from 2024-11-02 18-45-32

Environment (please complete the following information):

  • OS: [Both Windows 11 and Debian 12]
  • Version [Deauther V2]
  • Hardware [Esp8266 i guess even though it says NODEMCU on the bottom]

Attempts
i've tried many cable combinations and altering the deauther code but as im new both did not work.

Additional context
so when theres no resistor the pin reads the button as a different state but when resistor added the state is not fluid anymore, works with my code but not deauther.

Activity

welcome

welcome commented on Nov 2, 2024

@welcome

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

IDknoobcoder

IDknoobcoder commented on Nov 5, 2024

@IDknoobcoder

Go to A_ config just comment nodemcu and uncomment any dstike version that matches your buttons and screen configuration I recommend to uncomment the distike mini at line 45

BigPszemek

BigPszemek commented on Nov 6, 2024

@BigPszemek
Author

Go to A_ config just comment nodemcu and uncomment any dstike version that matches your buttons and screen configuration I recommend to uncomment the distike mini at line 45

accidentally closed the thread, |

i feel like giving up on this and just starting to do something on my own.
tried changing it and it didnt work (:

IDknoobcoder

IDknoobcoder commented on Nov 7, 2024

@IDknoobcoder

Bro don’t give up https://github.com/SpacehuhnTech/esp8266_deauther/releases download the bin file an flash it with esp web tool use deauther mini or try other if it doesn’t work

IDknoobcoder

IDknoobcoder commented on Nov 7, 2024

@IDknoobcoder

#1573 u can refer this conversation also

BigPszemek

BigPszemek commented on Nov 7, 2024

@BigPszemek
Author

#1573 u can refer this conversation also

hey, so i got a different board and used your previous advice (45 line) and it works now. thanks alot man hope you do well :)

IDknoobcoder

IDknoobcoder commented on Nov 7, 2024

@IDknoobcoder

Ur welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Buttons not working with Deauther · Issue #1750 · SpacehuhnTech/esp8266_deauther