From a6ee5a9224175b645bb46b0e6e08785983d64d5a Mon Sep 17 00:00:00 2001 From: caternuson Date: Thu, 26 Sep 2019 10:55:24 -0700 Subject: [PATCH] remove ft232h stuff --- adafruit_rgb_display/rgb.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/adafruit_rgb_display/rgb.py b/adafruit_rgb_display/rgb.py index 196d20f..bbdc4fa 100644 --- a/adafruit_rgb_display/rgb.py +++ b/adafruit_rgb_display/rgb.py @@ -41,26 +41,13 @@ # This is the size of the buffer to be used for fill operations, in 16-bit # units. +_BUFFER_SIZE = 256 try: - # If we're on CPython, try to set as large as possible import platform if "CPython" in platform.python_implementation(): - # check for FT232H special case - try: - import os - if os.environ['BLINKA_FT232H']: - # we are limited by pyftdi's max SPI payload - from pyftdi.spi import SpiController - _BUFFER_SIZE = SpiController.PAYLOAD_MAX_LENGTH // 2 # max bytes / bytes per pixel - except KeyError: - # otherwise set it to blit the whole thing - _BUFFER_SIZE = 320 * 240 - else: - # in case CircuitPython ever implements platform - _BUFFER_SIZE = 256 + _BUFFER_SIZE = 320 * 240 # blit the whole thing except ImportError: - # Otherwise set smaller MCU friendly size - _BUFFER_SIZE = 256 + pass def color565(r, g=0, b=0): """Convert red, green and blue values (0-255) into a 16-bit 565 encoding. As