Public Member Functions |
Static Public Attributes |
Protected Member Functions |
List of all members
Graphics::Display::ILI9341 Class Reference
#include <ILI9341.h>
Inheritance diagram for Graphics::Display::ILI9341:
Collaboration diagram for Graphics::Display::ILI9341:
Public Member Functions | |
ILI9341 (HSPI::Controller &spi, Size screenSize=resolution) | |
uint16_t | readNvMemStatus () |
String | getName () const override |
Get name of display. More... | |
![]() | |
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) | |
![]() | |
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 () |
![]() | |
virtual | ~AbstractDisplay () |
![]() | |
virtual | ~Device () |
Orientation | getOrientation () |
Get current display orientation. More... | |
![]() | |
virtual | ~RenderTarget () |
PackedColor | getColor (Color color) const |
Static Public Attributes | |
static constexpr Size | resolution {240, 320} |
![]() | |
static const SpiDisplayList::Commands | commands |
Protected Member Functions | |
bool | initialise () override |
Perform display-specific initialisation. More... | |
![]() | |
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... | |
![]() | |
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) |
![]() | |
virtual | ~AbstractDisplay () |
![]() | |
virtual | ~Device () |
Orientation | getOrientation () |
Get current display orientation. More... | |
![]() | |
virtual | ~RenderTarget () |
PackedColor | getColor (Color color) const |
Additional Inherited Members | |
![]() | |
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} |
![]() | |
uint8_t | resetPin {PIN_NONE} |
AddressWindow | addrWindow {} |
![]() | |
friend | Controller |
Controller & | controller |
![]() | |
Orientation | orientation {} |
Constructor & Destructor Documentation
◆ ILI9341()
|
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::ILI9341::readNvMemStatus | ( | ) |
Member Data Documentation
◆ resolution
|
staticconstexpr |
The documentation for this class was generated from the following file: