An open API service indexing awesome lists of open source software.

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

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);
}