SpacehuhnTech / esp8266_deauther

Affordable WiFi hacking platform for testing and learning
http://deauther.com
Other
13.55k stars 2.6k forks source link

Buttons not working with Deauther #1750

Closed BigPszemek closed 2 weeks ago

BigPszemek commented 3 weeks ago

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):

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.

welcome[bot] commented 3 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

1573 u can refer this conversation also

BigPszemek commented 2 weeks ago

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 commented 2 weeks ago

Ur welcome