[U] Update receiver
This commit is contained in:
+6
-8
@@ -3,12 +3,10 @@ from pathlib import Path
|
|||||||
import time
|
import time
|
||||||
import serial
|
import serial
|
||||||
import re
|
import re
|
||||||
from pynput.keyboard import Key, Controller
|
from vk import *
|
||||||
|
|
||||||
keyboard = Controller()
|
|
||||||
|
|
||||||
# Configure your serial port and baud rate
|
# Configure your serial port and baud rate
|
||||||
SERIAL_PORT = 'COMx' # Replace 'COMx' with your serial port (e.g., 'COM3' on Windows or '/dev/ttyUSB0' on Linux)
|
SERIAL_PORT = 'COM3' # Replace 'COMx' with your serial port (e.g., 'COM3' on Windows or '/dev/ttyUSB0' on Linux)
|
||||||
# SERIAL_PORT = '/dev/ttyACM0'
|
# SERIAL_PORT = '/dev/ttyACM0'
|
||||||
BAUD_RATE = 115200
|
BAUD_RATE = 115200
|
||||||
PATH = Path('C:/MUGS/felica.txt')
|
PATH = Path('C:/MUGS/felica.txt')
|
||||||
@@ -46,10 +44,10 @@ def parse_uid(data):
|
|||||||
from playsound import playsound
|
from playsound import playsound
|
||||||
playsound(str(AUDIO_EFFECT))
|
playsound(str(AUDIO_EFFECT))
|
||||||
|
|
||||||
# Press ENTER button
|
# Press scan button
|
||||||
keyboard.press(Key.enter)
|
press_key()
|
||||||
time.sleep(0.5)
|
time.sleep(2)
|
||||||
keyboard.release(Key.enter)
|
release_key()
|
||||||
|
|
||||||
return uid
|
return uid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user