From: Eduardo Date: Wed, 7 Feb 2024 18:27:47 +0000 (+0100) Subject: no needed X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=537c35eeea5e2a814635371a182a91afde85bd6c;p=Edus-pomo-can-dispenser.git no needed --- diff --git a/libs/ili9341.py b/libs/ili9341.py index 31ecacf..825ed10 100644 --- a/libs/ili9341.py +++ b/libs/ili9341.py @@ -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