From 71520eab9c30b4bc666d79b145a0d11d2501131e Mon Sep 17 00:00:00 2001 From: Edvin Date: Fri, 4 Apr 2025 11:21:49 +0200 Subject: Added control file --- main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 053899c..4720154 100644 --- a/main.py +++ b/main.py @@ -2,15 +2,15 @@ import RPi.GPIO as GPIO from time import sleep import os +import sys import glob import bluetooth - import re # 3 Pins to communicate with Arduino P1 = 17 P2 = 27 -P3 = 22 +P3 = 23 GPIO.setmode(GPIO.BCM) GPIO.setup(P1, GPIO.OUT) @@ -20,9 +20,7 @@ GPIO.output(P1, False) GPIO.output(P2, False) GPIO.output(P3, False) -target = "D4:D2:52:ED:14:89" - -server_sock = bluetooth.BluetoothSocket( bluetooth.RFCOMM ) +server_sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM) server_sock.bind(("", bluetooth.PORT_ANY)) server_sock.listen(1) -- cgit v1.2.3