Skip to content

Commit cd8a922

Browse files
Minor fixes
1 parent a43eaa6 commit cd8a922

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Thumbs.db
2+
.DS_Store
23
*.orig
34
embedded/node_modules
45
embedded/dist

src/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
//Pins where the screen is connected
118118
#ifdef ESP_OLED_FEATURE
119119
#define OLED_DISPLAY_SH1106 // OLED Display Type: SSD1306(OLED_DISPLAY_SSD1306) / SH1106(OLED_DISPLAY_SH1106), comment this line out to disable oled
120-
#define OLED_PIN_A 5 //5 //SDA; // i2c SDA Pin
121-
#define OLED_PIN_B 4 //4 //SCL; // i2c SCL Pin
120+
#define OLED_PIN_SDA 4 //5 //SDA; // i2c SDA Pin
121+
#define OLED_PIN_SCL 15 //4 //SCL; // i2c SCL Pin
122122
#define OLED_ADDR 0x3c
123123
#define HELTEC_EMBEDDED_PIN 16 //0 to disable
124124
#define OLED_FLIP_VERTICALY 1 //0 to disable

src/esp_oled.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232

3333

3434
#ifdef OLED_DISPLAY_SSD1306
35-
SSD1306 esp_display(0x3c, OLED_PIN_A, OLED_PIN_B);
35+
SSD1306 esp_display(OLED_ADDR, OLED_PIN_SDA, OLED_PIN_SCL);
3636
#elif defined OLED_DISPLAY_SH1106
37-
SH1106 esp_display(0x3c, OLED_PIN_A, OLED_PIN_B);
37+
SH1106 esp_display(OLED_ADDR, OLED_PIN_SDA, OLED_PIN_SCL);
3838
#endif
3939

4040

0 commit comments

Comments
 (0)