SimpleJoyCon 1.0.3__tar.gz → 1.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/PKG-INFO +1 -1
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon/joycon_l.py +1 -2
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon/joycon_r.py +1 -2
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon.egg-info/PKG-INFO +1 -1
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/setup.py +1 -1
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/README.md +0 -0
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon/__init__.py +0 -0
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon/componentes.py +0 -0
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon.egg-info/SOURCES.txt +0 -0
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon.egg-info/dependency_links.txt +0 -0
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon.egg-info/requires.txt +0 -0
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/SimpleJoyCon.egg-info/top_level.txt +0 -0
- {simplejoycon-1.0.3 → simplejoycon-1.0.4}/setup.cfg +0 -0
|
@@ -25,7 +25,7 @@ class JoyconL:
|
|
|
25
25
|
break
|
|
26
26
|
except Exception:
|
|
27
27
|
print(" -> Control Izquierdo no detectado. Reintentando... (Presiona un botón en el Joy-Con)", end="\r")
|
|
28
|
-
time.sleep(1
|
|
28
|
+
time.sleep(0.1)
|
|
29
29
|
try:
|
|
30
30
|
print("\n[OK] ¡Joy-Con L Conectado!")
|
|
31
31
|
self._enviar_subcomando(0x48, [0x01])
|
|
@@ -44,7 +44,6 @@ class JoyconL:
|
|
|
44
44
|
packet.extend(data_bytes)
|
|
45
45
|
packet += [0x00] * (49 - len(packet))
|
|
46
46
|
self.device.write(bytes(packet))
|
|
47
|
-
time.sleep(0.01)
|
|
48
47
|
|
|
49
48
|
def vibracion(self, fuerza):
|
|
50
49
|
fuerza = max(0.0, min(1.0, float(fuerza)))
|
|
@@ -26,7 +26,7 @@ class JoyconR:
|
|
|
26
26
|
except Exception:
|
|
27
27
|
# Si falla (porque el control está apagado), espera 1 segundo y reintenta
|
|
28
28
|
print(" -> Control Derecho no detectado. Reintentando...", end="\r")
|
|
29
|
-
time.sleep(1
|
|
29
|
+
time.sleep(0.1)
|
|
30
30
|
|
|
31
31
|
# Inicialización de hardware una vez conectado
|
|
32
32
|
try:
|
|
@@ -49,7 +49,6 @@ class JoyconR:
|
|
|
49
49
|
packet.extend(data_bytes)
|
|
50
50
|
packet += [0x00] * (49 - len(packet))
|
|
51
51
|
self.device.write(bytes(packet))
|
|
52
|
-
time.sleep(0.01)
|
|
53
52
|
|
|
54
53
|
def vibracion(self, fuerza):
|
|
55
54
|
fuerza = max(0.0, min(1.0, float(fuerza)))
|
|
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="SimpleJoyCon",
|
|
9
|
-
version="1.0.
|
|
9
|
+
version="1.0.4",
|
|
10
10
|
description="Una libreria de bajo nivel simplificada, estetica y sin comillas para usar Joy-Cons en Python",
|
|
11
11
|
long_description=long_description, # <--- LE DICE A PYPI QUE USE EL README
|
|
12
12
|
long_description_content_type="text/markdown", # <--- CORRIGE EL FORMATO A MARKDOWN
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|