Kaynağa Gözat

small fixes

Thomas B 5 ay önce
ebeveyn
işleme
bb1cdbb992
3 değiştirilmiş dosya ile 7 ekleme ve 7 silme
  1. 3
    3
      platformio.ini
  2. 2
    2
      src/smart_meter.cpp
  3. 2
    2
      src/ui.cpp

+ 3
- 3
platformio.ini Dosyayı Görüntüle

9
 ; https://docs.platformio.org/page/projectconf.html
9
 ; https://docs.platformio.org/page/projectconf.html
10
 
10
 
11
 [env:cyd]
11
 [env:cyd]
12
-platform = platformio/espressif32@6.4.0
12
+platform = platformio/espressif32@6.7.0
13
 board = esp32dev
13
 board = esp32dev
14
 framework = arduino
14
 framework = arduino
15
 upload_protocol = esptool
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
 monitor_speed = 115200
18
 monitor_speed = 115200
19
 extra_scripts = pre:extra_script.py
19
 extra_scripts = pre:extra_script.py
20
 build_flags =
20
 build_flags =

+ 2
- 2
src/smart_meter.cpp Dosyayı Görüntüle

22
 #include "lora.h"
22
 #include "lora.h"
23
 #include "smart_meter.h"
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
 #define SML_BAUD 9600
27
 #define SML_BAUD 9600
28
 #define SML_PARAM SWSERIAL_8N1
28
 #define SML_PARAM SWSERIAL_8N1
29
 
29
 

+ 2
- 2
src/ui.cpp Dosyayı Görüntüle

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

Loading…
İptal
Kaydet