diff --git a/src/main/python/main/ayab/engine/communication.py b/src/main/python/main/ayab/engine/communication.py index 9fc17006..0428ff34 100644 --- a/src/main/python/main/ayab/engine/communication.py +++ b/src/main/python/main/ayab/engine/communication.py @@ -174,6 +174,8 @@ def cnf_line_API6( color (int): The yarn color to be sent. flags (int): The flags sent to the controller. line_data (bytes): The bytearray to be sent to needles. + The leftmost needle is controlled by the least-significant bit of + the first byte. """ if self.__ser is None: return diff --git a/src/main/python/main/ayab/engine/engine.py b/src/main/python/main/ayab/engine/engine.py index 916445b1..18ec9cb7 100644 --- a/src/main/python/main/ayab/engine/engine.py +++ b/src/main/python/main/ayab/engine/engine.py @@ -123,7 +123,7 @@ def knit_config(self, image: Image.Image) -> None: self.__logger.debug(self.config.as_dict()) # start to knit with the bottom first - image = image.transpose(Image.ROTATE_180) + image = image.transpose(Image.FLIP_TOP_BOTTOM) # TODO: detect if previous conf had the same # image to avoid re-generating. diff --git a/src/main/python/main/ayab/knitprogress.py b/src/main/python/main/ayab/knitprogress.py index 8b25d1d2..b295b0e3 100644 --- a/src/main/python/main/ayab/knitprogress.py +++ b/src/main/python/main/ayab/knitprogress.py @@ -120,7 +120,6 @@ def update_progress( columns.append(carriage.symbol + " " + direction.symbol) # graph line of stitches - status.bits.reverse() midline = len(status.bits) - midline table_text = (