[GH-ISSUE #192] LCD and button wiring #127

Closed
opened 2026-02-27 23:23:13 +03:00 by kerem · 12 comments
Owner

Originally created by @ErfanDL on GitHub (Apr 18, 2017).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/192

Hi. I need LCD and button wiring

Originally created by @ErfanDL on GitHub (Apr 18, 2017). Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/192 Hi. I need LCD and button wiring
kerem 2026-02-27 23:23:13 +03:00
Author
Owner

@spacehuhn commented on GitHub (Apr 18, 2017):


#include <Wire.h>

//include the library you need
#include "SSD1306.h"
//#include "SH1106.h"

//button pins
#define upBtn D6
#define downBtn D7
#define selectBtn D5

#define buttonDelay 180 //delay in ms

//render settings
#define fontSize 8
#define rowsPerSite 8

//create display(Adr, SDA-pin, SCL-pin)
SSD1306 display(0x3c, D2, D1);
//SH1106 display(0x3c, D2, D1);

int rows = 3;
int curRow = 0;
int sites = 1;
int curSite = 1;
int lrow = 0;
#endif
<!-- gh-comment-id:294747258 --> @spacehuhn commented on GitHub (Apr 18, 2017): ```#ifdef USE_DISPLAY #include <Wire.h> //include the library you need #include "SSD1306.h" //#include "SH1106.h" //button pins #define upBtn D6 #define downBtn D7 #define selectBtn D5 #define buttonDelay 180 //delay in ms //render settings #define fontSize 8 #define rowsPerSite 8 //create display(Adr, SDA-pin, SCL-pin) SSD1306 display(0x3c, D2, D1); //SH1106 display(0x3c, D2, D1); int rows = 3; int curRow = 0; int sites = 1; int curSite = 1; int lrow = 0; #endif
Author
Owner

@ErfanDL commented on GitHub (Apr 18, 2017):

is compiled BIN have LCD feature ?

<!-- gh-comment-id:294754857 --> @ErfanDL commented on GitHub (Apr 18, 2017): is compiled BIN have LCD feature ?
Author
Owner

@schinfo commented on GitHub (Apr 18, 2017):

Hello ErfanDL,

please use your brain, not your keyboard

<!-- gh-comment-id:294755908 --> @schinfo commented on GitHub (Apr 18, 2017): Hello ErfanDL, please use your brain, not your keyboard
Author
Owner

@ErfanDL commented on GitHub (Apr 18, 2017):

Im wiring LCD but not worked

photo_2017-04-18_14-25-18

<!-- gh-comment-id:294756987 --> @ErfanDL commented on GitHub (Apr 18, 2017): Im wiring LCD but not worked ![photo_2017-04-18_14-25-18](https://cloud.githubusercontent.com/assets/14868771/25125141/07d46e4c-2443-11e7-86df-3df7119fbd39.jpg)
Author
Owner

@schinfo commented on GitHub (Apr 18, 2017):

Connect the white wire to 3V3 (Pin left of the red wire)

<!-- gh-comment-id:294758899 --> @schinfo commented on GitHub (Apr 18, 2017): Connect the white wire to 3V3 (Pin left of the red wire)
Author
Owner

@ErfanDL commented on GitHub (Apr 18, 2017):

@schinfo
Im do it but not worked ! wiring SDA to D2 and SCL to D1 - VCC to 3.3 & GND to GND

<!-- gh-comment-id:294761062 --> @ErfanDL commented on GitHub (Apr 18, 2017): @schinfo Im do it but not worked ! wiring SDA to D2 and SCL to D1 - VCC to 3.3 & GND to GND
Author
Owner

@schinfo commented on GitHub (Apr 18, 2017):

You must use the Arduino-IDE, not the BIN-File

<!-- gh-comment-id:294764882 --> @schinfo commented on GitHub (Apr 18, 2017): You must use the Arduino-IDE, not the BIN-File
Author
Owner

@schinfo commented on GitHub (Apr 18, 2017):

And read the hints in "esp8266_deauther.ino"

<!-- gh-comment-id:294765854 --> @schinfo commented on GitHub (Apr 18, 2017): And read the hints in "esp8266_deauther.ino"
Author
Owner

@schinfo commented on GitHub (Apr 18, 2017):

Line 16: //#define USE_DISPLAY /* <-- uncomment that if you wanna use the display */

<!-- gh-comment-id:294766251 --> @schinfo commented on GitHub (Apr 18, 2017): Line 16: //#define USE_DISPLAY /* <-- uncomment that if you wanna use the display */
Author
Owner

@schinfo commented on GitHub (Apr 18, 2017):

It's not enabled in the BIN-Files

<!-- gh-comment-id:294766583 --> @schinfo commented on GitHub (Apr 18, 2017): It's not enabled in the BIN-Files
Author
Owner

@spacehuhn commented on GitHub (Apr 18, 2017):

Please don't spam.
It's for advanced users, you have to use some knowlege about how to use an OLED.
I can't explain every little detail.

<!-- gh-comment-id:294768739 --> @spacehuhn commented on GitHub (Apr 18, 2017): Please don't spam. It's for advanced users, you have to use some knowlege about how to use an OLED. I can't explain every little detail.
Author
Owner

@ErfanDL commented on GitHub (Apr 18, 2017):

Thanks. its worked with arduino ide

photo_2017-04-18_15-05-10

<!-- gh-comment-id:294773738 --> @ErfanDL commented on GitHub (Apr 18, 2017): Thanks. its worked with arduino ide ![photo_2017-04-18_15-05-10](https://cloud.githubusercontent.com/assets/14868771/25126769/9761bec0-2448-11e7-861d-b6d0830c2f6f.jpg)
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#127
No description provided.