Public Member Functions |
Static Public Attributes |
Protected Member Functions |
List of all members
Graphics::Display::ST7789V Class Reference
#include <ST7789V.h>
Inheritance diagram for Graphics::Display::ST7789V:
Collaboration diagram for Graphics::Display::ST7789V:
Public Member Functions | |
| ST7789V (HSPI::Controller &spi, Size screenSize=resolution) | |
| uint16_t | readNvMemStatus () |
| String | getName () const override |
| Get name of display. More... | |
Public Member Functions inherited from Graphics::MipiDisplay | |
| MipiDisplay (HSPI::Controller &spi, Size resolution, Size screenSize) | |
| bool | begin (HSPI::PinSet pinSet, uint8_t chipSelect, uint8_t dcPin, uint8_t resetPin=PIN_NONE, uint32_t clockSpeed=4000000) |
| uint32_t | readRegister (uint8_t cmd, uint8_t byteCount) |
| uint32_t | readDisplayId () |
| uint32_t | readDisplayStatus () |
| uint8_t | readPowerMode () |
| uint8_t | readMADCTL () |
| uint8_t | readPixelFormat () |
| uint8_t | readImageFormat () |
| uint8_t | readSignalMode () |
| uint8_t | readSelfDiag () |
| void | setNativeSize (Size screenSize) |
| Sets the screen size. Must be called before calling begin() More... | |
| Size | getNativeSize () const override |
| Get physical size of display. More... | |
| Size | getResolution () const |
| bool | setScrollMargins (uint16_t top, uint16_t bottom) override |
| Set margins for hardware scrolling. More... | |
| bool | scroll (int16_t y) override |
| Scroll region of display up or down using hardware scrolling. More... | |
| bool | setOrientation (Orientation orientation) override |
| Set display orientation. More... | |
| Size | getSize () const override |
| Get target dimensions. More... | |
| PixelFormat | getPixelFormat () const override |
| All surfaces support the same pixel format. More... | |
| Point | getAddrOffset () const |
| Surface * | createSurface (size_t bufferSize=0) override |
| Create a surface for use with this render target. More... | |
| uint16_t | getScrollOffset () const |
| SpiDisplay (HSPI::Controller &spi) | |
Public Member Functions inherited from Graphics::SpiDisplay | |
| SpiDisplay (HSPI::Controller &spi) | |
| bool | begin (HSPI::PinSet pinSet, uint8_t chipSelect, uint8_t resetPin=PIN_NONE, uint32_t clockSpeed=4000000) |
| void | execute (SpiDisplayList &list, DisplayList::Callback callback=nullptr, void *param=nullptr) |
| void | execute (const SpiDisplayList::Commands &commands, const FSTR::ObjectBase &data) |
| void | reset (bool state) |
| HSPI::IoModes | getSupportedIoModes () const override |
| Return set of IO modes supported by a device implementation. More... | |
| AddressWindow & | getAddressWindow () |
Public Member Functions inherited from Graphics::AbstractDisplay | |
| virtual | ~AbstractDisplay () |
Public Member Functions inherited from Graphics::Device | |
| virtual | ~Device () |
| Orientation | getOrientation () |
| Get current display orientation. More... | |
Public Member Functions inherited from Graphics::RenderTarget | |
| virtual | ~RenderTarget () |
| PackedColor | getColor (Color color) const |
Static Public Attributes | |
| static constexpr Size | resolution {240, 320} |
Static Public Attributes inherited from Graphics::MipiDisplay | |
| static const SpiDisplayList::Commands | commands |
Protected Member Functions | |
| bool | initialise () override |
| Perform display-specific initialisation. More... | |
Protected Member Functions inherited from Graphics::MipiDisplay | |
| void | sendInitData (const FSTR::ObjectBase &data) |
| Called by implementation to send fixed initialisation sequences. More... | |
| void | setDefaultAddressMode (uint8_t mode) |
| Set default address mode setting. More... | |
Protected Member Functions inherited from HSPI::Device | |
| void | transferStarting (Request &request) |
| bool | transferComplete (Request &request) |
| Device (Controller &controller) | |
| virtual | ~Device () |
| bool | begin (PinSet pinSet, uint8_t chipSelect, uint32_t clockSpeed) |
| Register device with controller and prepare for action. More... | |
| void | end () |
| bool | isReady () const |
| Determine if the device is initialised. More... | |
| PinSet | getPinSet () const |
| uint8_t | getChipSelect () const |
| uint32_t | getSpeed () const |
| void | setBitOrder (BitOrder bitOrder) |
| BitOrder | getBitOrder () const |
| void | setClockMode (ClockMode mode) |
| ClockMode | getClockMode () const |
| bool | isSupported (IoMode mode) const |
Determine if the device/controller combination supports an IO mode Must be called after begin() as other settings (e.g. pinset) can affect support. More... | |
| virtual bool | setIoMode (IoMode mode) |
| IoMode | getIoMode () const |
| size_t | getBitsPerClock () const |
| void | execute (Request &request) |
| void | onTransfer (Callback callback) |
| Set a callback to be invoked before a request is started, and when it has finished. More... | |
| void | wait (Request &request) |
Protected Member Functions inherited from Graphics::AbstractDisplay | |
| virtual | ~AbstractDisplay () |
Protected Member Functions inherited from Graphics::Device | |
| virtual | ~Device () |
| Orientation | getOrientation () |
| Get current display orientation. More... | |
Protected Member Functions inherited from Graphics::RenderTarget | |
| virtual | ~RenderTarget () |
| PackedColor | getColor (Color color) const |
Additional Inherited Members | |
Protected Attributes inherited from Graphics::MipiDisplay | |
| Size | resolution {} |
| Controller resolution. More... | |
| Size | nativeSize {} |
| Size of attached screen. More... | |
| Point | addrOffset {} |
| Display orientation may require adjustment to address window position. More... | |
| uint8_t | defaultAddressMode {Mipi::DCS_ADDRESS_MODE_BGR} |
Protected Attributes inherited from Graphics::SpiDisplay | |
| uint8_t | resetPin {PIN_NONE} |
| AddressWindow | addrWindow {} |
Protected Attributes inherited from HSPI::Device | |
| friend | Controller |
| Controller & | controller |
Protected Attributes inherited from Graphics::Device | |
| Orientation | orientation {} |
Constructor & Destructor Documentation
◆ ST7789V()
|
inline |
Member Function Documentation
◆ getName()
|
inlineoverridevirtual |
Get name of display.
Implements Graphics::Device.
◆ initialise()
|
overrideprotectedvirtual |
Perform display-specific initialisation.
- Return values
-
bool true on success, false on failure
Implements Graphics::MipiDisplay.
◆ readNvMemStatus()
| uint16_t Graphics::Display::ST7789V::readNvMemStatus | ( | ) |
Member Data Documentation
◆ resolution
|
staticconstexpr |
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.9.1