|
| 1 | +# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries |
| 2 | +# SPDX-FileCopyrightText: Copyright (c) 2023 Melissa LeBlanc-Williams for Adafruit Industries |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: MIT |
| 5 | + |
| 6 | +""" |
| 7 | +`adafruit_qualia.displays.round28` |
| 8 | +================================================================================ |
| 9 | +
|
| 10 | +2.8" 480x480 Round DotClock Display Class |
| 11 | +
|
| 12 | +
|
| 13 | +* Author(s): Melissa LeBlanc-Williams |
| 14 | +
|
| 15 | +Implementation Notes |
| 16 | +-------------------- |
| 17 | +
|
| 18 | +**Hardware:** |
| 19 | +
|
| 20 | +* `Round RGB 666 TTL TFT Display - 2.8" 480x480 - No Touch |
| 21 | + <https://www.adafruit.com/product/5852>`_ |
| 22 | +
|
| 23 | +""" |
| 24 | + |
| 25 | +from . import DotClockDisplay |
| 26 | + |
| 27 | + |
| 28 | +class Round28(DotClockDisplay): |
| 29 | + """TL028WVC01 display driver""" |
| 30 | + |
| 31 | + def __init__(self): |
| 32 | + super().__init__() |
| 33 | + self._init_sequence = bytes( |
| 34 | + ( |
| 35 | + b"\xff\x05w\x01\x00\x00\x13" |
| 36 | + b"\xef\x01\x08" |
| 37 | + b"\xff\x05w\x01\x00\x00\x10" |
| 38 | + b"\xc0\x02;\x00" |
| 39 | + b"\xc1\x02\x10\x0c" |
| 40 | + b"\xc2\x02\x07\n" |
| 41 | + b"\xc7\x01\x00" |
| 42 | + b"\xcc\x01\x10" |
| 43 | + b"\xcd\x01\x08" |
| 44 | + b"\xb0\x10\x05\x12\x98\x0e\x0f\x07\x07\t\t#\x05R\x0fg,\x11" |
| 45 | + b'\xb1\x10\x0b\x11\x97\x0c\x12\x06\x06\x08\x08"\x03Q\x11f+\x0f' |
| 46 | + b"\xff\x05w\x01\x00\x00\x11" |
| 47 | + b"\xb0\x01]" |
| 48 | + b"\xb1\x01-" |
| 49 | + b"\xb2\x01\x81" |
| 50 | + b"\xb3\x01\x80" |
| 51 | + b"\xb5\x01N" |
| 52 | + b"\xb7\x01\x85" |
| 53 | + b"\xb8\x01 " |
| 54 | + b"\xc1\x01x" |
| 55 | + b"\xc2\x01x" |
| 56 | + b"\xd0\x01\x88" |
| 57 | + b"\xe0\x03\x00\x00\x02" |
| 58 | + b"\xe1\x0b\x060\x080\x050\x070\x0033" |
| 59 | + b"\xe2\x0c\x11\x1133\xf4\x00\x00\x00\xf4\x00\x00\x00" |
| 60 | + b"\xe3\x04\x00\x00\x11\x11" |
| 61 | + b"\xe4\x02DD" |
| 62 | + b"\xe5\x10\r\xf50\xf0\x0f\xf70\xf0\t\xf10\xf0\x0b\xf30\xf0" |
| 63 | + b"\xe6\x04\x00\x00\x11\x11" |
| 64 | + b"\xe7\x02DD" |
| 65 | + b"\xe8\x10\x0c\xf40\xf0\x0e\xf60\xf0\x08\xf00\xf0\n\xf20\xf0" |
| 66 | + b"\xe9\x026\x01" |
| 67 | + b"\xeb\x07\x00\x01\xe4\xe4D\x88@" |
| 68 | + b"\xed\x10\xff\x10\xafvT+\xcf\xff\xff\xfc\xb2Eg\xfa\x01\xff" |
| 69 | + b"\xef\x06\x08\x08\x08E?T" |
| 70 | + b"\xff\x05w\x01\x00\x00\x00" |
| 71 | + b"\x11\x80x" |
| 72 | + b":\x01f" |
| 73 | + b"6\x01\x00" |
| 74 | + b"5\x01\x00" |
| 75 | + b")\x802" |
| 76 | + ) |
| 77 | + ) |
| 78 | + |
| 79 | + self._timings = { |
| 80 | + "frequency": 15_000_000, |
| 81 | + "width": 480, |
| 82 | + "height": 480, |
| 83 | + "hsync_pulse_width": 2, |
| 84 | + "hsync_back_porch": 10, |
| 85 | + "hsync_front_porch": 10, |
| 86 | + "hsync_idle_low": False, |
| 87 | + "vsync_pulse_width": 6, |
| 88 | + "vsync_back_porch": 10, |
| 89 | + "vsync_front_porch": 10, |
| 90 | + "vsync_idle_low": False, |
| 91 | + "pclk_active_high": True, |
| 92 | + "pclk_idle_high": False, |
| 93 | + "de_idle_high": False, |
| 94 | + } |
| 95 | + |
| 96 | + self._round = True |
0 commit comments