Examples: platformio run -e sonoff-sensors; platformio run -e sonoff-DE; Arduino IDE. Edit my_user_config.h. Uncomment the statement by removing the "//" in front of the line: #define USE_CONFIG_OVERRIDE; Click compile; Flash the binary on the Wemos D1 Mini and confirm it is functional before connecting the PZEM-004T to its serial interface. The parameters set as false ensure that the library doesn’t use the default I2C pins and use the pins defined in the code (GPIO 5 and GPIO 4). If you add these two lines of code, you can use any examples that use these libraries to control this OLED display. To test your OLED display, you can copy the following code to your Arduino IDE. To use the functions in the Wire library, we first need to add it to our sketch. In the sketch above, we do that with #include . After including the library, the next thing to do is to join the device on the I2C bus. The syntax for this is Wire.begin (address). The address is optional for master devices. Specs. Processor: L106 32-bit RISC microprocessor core based on the Tensilica Xtensa Diamond Standard 106Micro running at 80 MHz [5] Memory: 32 KiB instruction RAM. 32 KiB instruction cache RAM. 80 KiB user-data RAM. 16 KiB ETS system-data RAM. External QSPI flash: 4 MiB. IEEE 802.11 b/g/n Wi-Fi. Vay Tiền Trả Góp 24 Tháng.

wemos d1 mini i2c example