id: repo-name
run: |
echo ::set-output name=repo-name::Adafruit-Blinka-displayio
- - name: Set up Python 3.6
+ - name: Set up Python 3.7
uses: actions/setup-python@v1
with:
- python-version: 3.6
+ python-version: 3.7
- name: Versions
run: |
python3 --version
def __getitem__(self, index):
if not 0 <= index < len(self._colors):
raise ValueError("Palette index out of range")
- return self._colors[index]
+ return self._colors[index]["rgb888"]
def make_transparent(self, palette_index):
"""Set the palette index to be a transparent color"""
def _shade(self, pixel_value):
if isinstance(self._pixel_shader, Palette):
- return self._pixel_shader[pixel_value]["rgba"]
+ return self._pixel_shader[pixel_value]
if isinstance(self._pixel_shader, ColorConverter):
return self._pixel_shader.convert(pixel_value)
return pixel_value
# autodoc_mock_imports = ["digitalio", "busio"]
intersphinx_mapping = {
- "python": ("https://docs.python.org/3.4", None),
+ "python": ("https://docs.python.org/3.7", None),
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
}
"Topic :: System :: Hardware",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.4",
- "Programming Language :: Python :: 3.5",
+ "Programming Language :: Python :: 3.7",
],
# What does your project relate to?
keywords="adafruit blinka circuitpython micropython displayio lcd tft display pitft",