From a2adcf7afd7fdfc17a10b45feac2fcc00c80f325 Mon Sep 17 00:00:00 2001 From: smayzy Date: Mon, 18 May 2026 16:51:41 +0200 Subject: [PATCH] add M0 and M1 pin and change serial pins --- cocomobile-arduino/cocomobile-arduino.ino | 6 +++++- receive-arduino/receive-arduino.ino | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cocomobile-arduino/cocomobile-arduino.ino b/cocomobile-arduino/cocomobile-arduino.ino index 122c281..670b6d5 100644 --- a/cocomobile-arduino/cocomobile-arduino.ino +++ b/cocomobile-arduino/cocomobile-arduino.ino @@ -3,7 +3,7 @@ const float TENSION_SCALE = 15.701; const float CURRENT_SCALE = 31.25; const float ADC_TO_VOLT = 5.0 / 1023.0; -SoftwareSerial lora(8, 9); // RX, TX +SoftwareSerial lora(10, 9); // RX, TX float tens = 0; float amp = 0; @@ -13,6 +13,10 @@ String line = ""; void setup() { lora.begin(9600); Serial.begin(115200); + pinMode(11, OUTPUT); + pinMode(12, OUTPUT); + digitalWrite(11, LOW); // M1 + digitalWrite(12, LOW); // M0 } void loop() { diff --git a/receive-arduino/receive-arduino.ino b/receive-arduino/receive-arduino.ino index 2140845..069de02 100644 --- a/receive-arduino/receive-arduino.ino +++ b/receive-arduino/receive-arduino.ino @@ -1,6 +1,6 @@ #include -SoftwareSerial lora(8, 9); // RX, TX +SoftwareSerial lora(10, 9); // RX, TX bool test_with_fake = false; @@ -9,6 +9,10 @@ String line = ""; void setup() { Serial.begin(115200); lora.begin(9600); + pinMode(11, OUTPUT); + pinMode(12, OUTPUT); + digitalWrite(11, LOW); // M1 + digitalWrite(12, LOW); // M0 } void loop() {