From a87becb772834e81b17f456d662482832f4c578d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=9A=D0=B8=D1=80=D0=BF?= =?UTF-8?q?=D0=B8=D0=BA=D0=BE=D0=B2?= Date: Mon, 29 Apr 2024 20:04:32 +0300 Subject: [PATCH] =?UTF-8?q?[WIP]=20=D0=9F=D1=8B=D1=82=D0=B0=D0=B5=D0=BC?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B8=D1=82=D1=8C?= =?UTF-8?q?=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B0=D1=80=D0=B4?= =?UTF-8?q?=D1=83=D0=B8=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + ard.py | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 .gitignore create mode 100644 ard.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d17dae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv diff --git a/ard.py b/ard.py new file mode 100644 index 0000000..3ce3b33 --- /dev/null +++ b/ard.py @@ -0,0 +1,3 @@ +from serial import Serial +ser = Serial('COM4', 9600) +s = ser.read(100) # read up to one hundred bytes