From 5a253b4a571f200dc6cf78a4e1a880fa5609fe24 Mon Sep 17 00:00:00 2001 From: jkpete <1031139173@qq.com> Date: Thu, 19 Dec 2024 09:18:16 +0800 Subject: [PATCH] fixed files --- README.md | 6 +++--- Src/OLED_SSD1306.lua | 4 ++-- Src/init.lua | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2f78abc..5c9d153 100644 --- a/README.md +++ b/README.md @@ -77,9 +77,9 @@ oled显示屏用于显示配网参数以及连接状态,指示灯状态等信 | 接线方式 | SSD1306-12864-I2C引脚 | ESP8266引脚 | | ---- | ------------------- | --------- | | 直连 | GND | GND | -| 直连 | VCC | 3v3 | -| 直连 | SCL | D6 | -| 直连 | SDA | D5 | +| 直连 | VCC | 3v | +| 直连 | SCL | D5 | +| 直连 | SDA | D6 | `如有其他设备需要接线后续补充` diff --git a/Src/OLED_SSD1306.lua b/Src/OLED_SSD1306.lua index 44ac3ca..5f3b8bb 100644 --- a/Src/OLED_SSD1306.lua +++ b/Src/OLED_SSD1306.lua @@ -1,6 +1,6 @@ Id = 0 -Sda = 5 -- GPIO14 -Scl = 6 -- GPIO12 +Sda = 6 -- GPIO14 +Scl = 5 -- GPIO12 Sla = 0x3c i2c.setup(Id, Sda, Scl, i2c.SLOW) Disp = u8g2.ssd1306_i2c_128x64_noname(Id, Sla) diff --git a/Src/init.lua b/Src/init.lua index a2f25fe..11eb6e5 100644 --- a/Src/init.lua +++ b/Src/init.lua @@ -1,5 +1,4 @@ --Start with this file ---这个文件初始化会执行 require("EasySave") require("GPIO") require("OLED_SSD1306")