Thomas B 5ヶ月前
コミット
bb1cdbb992
3個のファイルの変更7行の追加7行の削除
  1. 3
    3
      platformio.ini
  2. 2
    2
      src/smart_meter.cpp
  3. 2
    2
      src/ui.cpp

+ 3
- 3
platformio.ini ファイルの表示

@@ -9,12 +9,12 @@
9 9
 ; https://docs.platformio.org/page/projectconf.html
10 10
 
11 11
 [env:cyd]
12
-platform = platformio/espressif32@6.4.0
12
+platform = platformio/espressif32@6.7.0
13 13
 board = esp32dev
14 14
 framework = arduino
15 15
 upload_protocol = esptool
16
-upload_port = /dev/ttyUSB1
17
-monitor_port = /dev/ttyUSB1
16
+upload_port = /dev/ttyUSB0
17
+monitor_port = /dev/ttyUSB0
18 18
 monitor_speed = 115200
19 19
 extra_scripts = pre:extra_script.py
20 20
 build_flags =

+ 2
- 2
src/smart_meter.cpp ファイルの表示

@@ -22,8 +22,8 @@
22 22
 #include "lora.h"
23 23
 #include "smart_meter.h"
24 24
 
25
-#define SML_TX 33
26
-#define SML_RX 34
25
+#define SML_RX 33
26
+#define SML_TX 34
27 27
 #define SML_BAUD 9600
28 28
 #define SML_PARAM SWSERIAL_8N1
29 29
 

+ 2
- 2
src/ui.cpp ファイルの表示

@@ -18,6 +18,8 @@
18 18
  * ----------------------------------------------------------------------------
19 19
  */
20 20
 
21
+#ifdef FEATURE_UI
22
+
21 23
 #include <Arduino.h>
22 24
 #include <WiFi.h>
23 25
 
@@ -27,8 +29,6 @@
27 29
 #include "memory.h"
28 30
 #include "ui.h"
29 31
 
30
-#ifdef FEATURE_UI
31
-
32 32
 #include <SPI.h>
33 33
 #include <XPT2046_Touchscreen.h>
34 34
 #include <TFT_eSPI.h>

読み込み中…
キャンセル
保存