aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaster4385 <venkatesh@tablaster.dev>2024-11-17 22:00:44 +0530
committerBlaster4385 <venkatesh@tablaster.dev>2024-12-01 22:34:13 +0530
commit4dedd94c34e28f0363fe6ebffe9ae95703f1b486 (patch)
treef86b0ae2567f4e6ff1e1671a2efef1ca26e3eeec
parent4c9d3f9ffbbe0439c5505761431bee57f163e0cc (diff)
feat: increase baud rate and send intervalHEADmain
-rw-r--r--sysmon.ino2
-rw-r--r--sysmon.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/sysmon.ino b/sysmon.ino
index 34b9499..1a6080d 100644
--- a/sysmon.ino
+++ b/sysmon.ino
@@ -20,7 +20,7 @@ static uint32_t rtcTime = 0;
static uint32_t displayTime = 0;
void setup() {
- Serial.begin(9600);
+ Serial.begin(115200);
initHardware();
gfx1_layout();
}
diff --git a/sysmon.py b/sysmon.py
index 0347d7c..54cd671 100644
--- a/sysmon.py
+++ b/sysmon.py
@@ -13,10 +13,10 @@ if platform.system() == "Windows":
# Constants
FILE_DESCRIPTOR = 'COM3' if platform.system() == 'Windows' else '/dev/ttyUSB0'
-BAUD_RATE = 9600
+BAUD_RATE = 115200
SERIAL_TIMEOUT = 1 # Timeout for serial operations in seconds
CONNECTION_WAIT = 6 # Time to wait for the serial connection to establish
-SEND_INTERVAL = 2 # Interval between sending data in seconds
+SEND_INTERVAL = 3 # Interval between sending data in seconds
# CPU temperature path for Linux
#CPU_TEMP_PATH = '/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon4/temp1_input'