https://github.com/ntdotjsx/esp8266-oled-module-with-my-server
eiei server กากแต่กูมี idea
https://github.com/ntdotjsx/esp8266-oled-module-with-my-server
Last synced: 10 months ago
JSON representation
eiei server กากแต่กูมี idea
- Host: GitHub
- URL: https://github.com/ntdotjsx/esp8266-oled-module-with-my-server
- Owner: ntdotjsx
- Created: 2025-08-09T18:41:03.000Z (10 months ago)
- Default Branch: hello-world
- Last Pushed: 2025-08-11T12:10:36.000Z (10 months ago)
- Last Synced: 2025-08-17T05:36:52.474Z (10 months ago)
- Language: C++
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP8266-OLED-Module-With-My-Server
> PlatformIO: Rebuild IntelliSense Index
#include
#include
void setup() {
Serial.begin(115200);
delay(2000);
}
void doScan(uint8_t sda, uint8_t scl) {
Wire.begin(sda, scl);
Serial.printf("\nScanning with SDA=%d SCL=%d\n", sda, scl);
int found = 0;
for (uint8_t addr = 1; addr < 127; addr++) {
Wire.beginTransmission(addr);
if (Wire.endTransmission() == 0) {
Serial.printf("I2C device found at 0x%02X\n", addr);
found++;
}
}
if (!found) Serial.println("No I2C devices found");
}
void loop() {
// Try HW-364A common pins: SDA = D6(GPIO12), SCL = D5(GPIO14)
doScan(D6, D5); // SDA=D6 (GPIO12), SCL=D5 (GPIO14)
delay(1000);
// Try swapped just in case
doScan(D5, D6); // SDA=D5, SCL=D6
delay(5000);
}