no needed main
authorEduardo <[email protected]>
Wed, 7 Feb 2024 18:27:47 +0000 (19:27 +0100)
committerEduardo <[email protected]>
Wed, 7 Feb 2024 18:27:47 +0000 (19:27 +0100)
libs/ili9341.py

index 31ecacf3e37124fc559e14c2eb29e46734d27977..825ed10b338be5d425f46f45b801cd83ca070ace 100644 (file)
@@ -1010,25 +1010,6 @@ class Display(object):
         if len(args) > 0:
             self.write_data(bytearray(args))
 
-    def write_cmd_cpy(self, command, *args):
-        """Write command to OLED (CircuitPython).
-
-        Args:
-            command (byte): ILI9341 command code.
-            *args (optional bytes): Data to transmit.
-        """
-        self.dc.value = False
-        self.cs.value = False
-        # Confirm SPI locked before writing
-        while not self.spi.try_lock():
-            pass
-        self.spi.write(bytearray([command]))
-        self.spi.unlock()
-        self.cs.value = True
-        # Handle any passed data
-        if len(args) > 0:
-            self.write_data(bytearray(args))
-
     def write_data_mpy(self, data):
         """Write data to OLED (MicroPython).
 
@@ -1039,18 +1020,3 @@ class Display(object):
         self.cs(0)
         self.spi.write(data)
         self.cs(1)
-
-    def write_data_cpy(self, data):
-        """Write data to OLED (CircuitPython).
-
-        Args:
-            data (bytes): Data to transmit.
-        """
-        self.dc.value = True
-        self.cs.value = False
-        # Confirm SPI locked before writing
-        while not self.spi.try_lock():
-            pass
-        self.spi.write(data)
-        self.spi.unlock()
-        self.cs.value = True