added tweaks to filter
This commit is contained in:
@@ -3,11 +3,7 @@ import serial
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
# import colorama
|
||||
# colorama.just_fix_windows_console()
|
||||
|
||||
print("\x1b[0;32mThis should be green\x1b[0m")
|
||||
print("\x1b[0;31mThis should be red\x1b[0m")
|
||||
|
||||
def main():
|
||||
# Load config
|
||||
@@ -27,6 +23,10 @@ def main():
|
||||
|
||||
try:
|
||||
with serial.Serial(port, baud, timeout=0.5) as ser:
|
||||
# 🔧 Clear DTR and RTS lines (common for ESP32 reset handling)
|
||||
ser.dtr = False
|
||||
ser.rts = False
|
||||
|
||||
print("[Serial Monitor] Press Ctrl+C to exit.\n")
|
||||
while True:
|
||||
if ser.in_waiting:
|
||||
|
||||
Reference in New Issue
Block a user