Skip to content

Commit 6d9ca3e

Browse files
Fix I2C scan compile error for Wireless Stick Lite
1 parent c8ddaff commit 6d9ca3e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/ESP32/I2C_Scanner/I2C_Scanner.ino

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
#include "Arduino.h"
2222
#include "heltec.h"
2323

24+
#if defined( Wireless_Stick_Lite )
25+
#include <Wire.h>
26+
#include "oled/SSD1306Wire.h"
27+
28+
static const uint8_t SCL_OLED = 15;
29+
static const uint8_t SDA_OLED = 4;
30+
#endif
31+
2432
void setup()
2533
{
2634
Heltec.begin(true, false, true);

0 commit comments

Comments
 (0)