From 4dedd94c34e28f0363fe6ebffe9ae95703f1b486 Mon Sep 17 00:00:00 2001 From: Blaster4385 Date: Sun, 17 Nov 2024 22:00:44 +0530 Subject: feat: increase baud rate and send interval --- sysmon.ino | 2 +- sysmon.py | 4 ++-- 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' -- cgit v1.2.3-73-gaa49b