[split] cleanup: remove target_left (unused)

only split_target_left is used
This commit is contained in:
crazyiop 2022-06-18 23:58:46 +02:00 committed by Kyle Brown
parent bb2ddc1e33
commit d2eba7b4ef
2 changed files with 1 additions and 4 deletions

View File

@ -35,11 +35,10 @@ split = Split(
split_flip=True, # If both halves are the same, but flipped, set this True
split_side=None, # Sets if this is to SplitSide.LEFT or SplitSide.RIGHT, or use EE hands
split_type=SplitType.UART, # Defaults to UART
split_target_left=True, # If you want the right to be the target, change this to False
split_target_left=True, # Assumes that left will be the one on USB. Set to False if it will be the right
uart_interval=20, # Sets the uarts delay. Lower numbers draw more power
data_pin=None, # The primary data pin to talk to the secondary device with
data_pin2=None, # Second uart pin to allow 2 way communication
target_left=True, # Assumes that left will be the one on USB. Set to False if it will be the right
uart_flip=True, # Reverses the RX and TX pins if both are provided
use_pio=False, # Use RP2040 PIO implementation of UART. Required if you want to use other pins than RX/TX
)

View File

@ -35,7 +35,6 @@ class Split(Module):
uart_interval=20,
data_pin=None,
data_pin2=None,
target_left=True,
uart_flip=True,
use_pio=False,
debug_enabled=False,
@ -49,7 +48,6 @@ class Split(Module):
self.split_offset = None
self.data_pin = data_pin
self.data_pin2 = data_pin2
self.target_left = target_left
self.uart_flip = uart_flip
self._use_pio = use_pio
self._uart = None