|
void | clear (uint16_t colour=myColours.white) |
| Clear the screen.
|
|
void | flush () |
| Update the display, normal update.
|
|
void | flushFast () |
| Update the display, fast update.
|
|
uint8_t | flushMode (uint8_t updateMode=UPDATE_FAST) |
| Update the display.
|
|
void | regenerate (uint8_t mode=UPDATE_FAST) |
| Regenerate the panel.
|
|
void | setPowerProfile (uint8_t mode=POWER_MODE_AUTO, uint8_t scope=POWER_SCOPE_GPIO_ONLY) |
| Set the power profile.
|
|
void | suspend (uint8_t suspendScope=POWER_SCOPE_GPIO_ONLY) |
| Suspend.
|
|
void | resume () |
| Resume after suspend()
|
|
void | setTemperatureC (int8_t temperatureC=25) |
| Set temperature in Celsius.
|
|
void | setTemperatureF (int16_t temperatureF=77) |
| Set temperature in Fahrenheit.
|
|
uint8_t | checkTemperatureMode (uint8_t updateMode) |
| Check the mode against the temperature.
|
|
virtual STRING_TYPE | WhoAmI () |
| Who Am I.
|
|
virtual STRING_CONST_TYPE | reference () |
| Library reference.
|
|
uint8_t | screenColours () |
| Get number of colours.
|
|
virtual STRING_TYPE | screenNumber () |
| Screen number.
|
|
void | debugVariant (uint8_t contextFilm) |
| Recommend variant for film.
|
|
pins_t | getBoardPins () |
| Get the pins of the board.
|
|
|
- Could be internal MCU or external SPI SRAM
- Not suitable for FRAM
- Not suitable for GUI
|
| Screen_EPD (Driver_EPD_Virtual *driver) |
| Constructor with default pins.
|
|
void | begin () |
| Initialisation.
|
|
|
- Required for FRAM with PLACE_IN_FRAM
- Required for PSRAM
- Not suitable for external SPI
- Highly recommended for GUI
- Note
- Advanced edition only
|
| Screen_EPD (Driver_EPD_Virtual *driver, uint8_t *frameBuffer) |
| Constructor with default pins.
|
|
| hV_Screen_Buffer () |
| Constructor.
|
|
font_s | getFontDetails () |
| Get the details of the selected font.
|
|
virtual void | setOrientation (uint8_t orientation) |
| Set orientation.
|
|
uint8_t | getOrientation () |
| Get orientation.
|
|
virtual uint16_t | screenSizeX () |
| Screen size, x-axis of logical screen.
|
|
virtual uint16_t | screenSizeY () |
| Screen size, y-axis of logical screen.
|
|
virtual uint16_t | screenDiagonal () |
| Screen size, diagonal.
|
|
virtual uint8_t | screenColourBits () |
| Screen colour depth.
|
|
virtual void | setMarginXY (uint16_t marginX=0, uint16_t marginY=0) |
| Set margin for logical screen.
|
|
virtual uint16_t | screenMarginX () |
| Margin size, x-axis of logical screen.
|
|
virtual uint16_t | screenMarginY () |
| Magin size, y-axis of logical screen.
|
|
virtual void | circle (uint16_t x0, uint16_t y0, uint16_t radius, uint16_t colour) |
| Draw circle.
|
|
virtual void | arc (uint16_t x0, uint16_t y0, uint16_t radius, uint16_t start, uint16_t end, uint16_t colour) |
| Draw arc.
|
|
virtual void | level (uint16_t x0, uint16_t y0, uint16_t radius, uint16_t start, uint16_t end, uint16_t colour) |
| Draw level in a circle.
|
|
virtual void | ring (uint16_t x0, uint16_t y0, uint16_t inner, uint16_t outer, uint16_t colour) |
| Draw ring.
|
|
virtual void | line (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t colour) |
| Draw line, rectangle coordinates.
|
|
virtual void | dLine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t colour) |
| Draw line, vector coordinates.
|
|
virtual void | setPenSolid (bool flag=true) |
| Set pen opaque.
|
|
virtual bool | getPenSolid () |
| Get pen mode.
|
|
virtual void | triangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3, uint16_t colour) |
| Draw triangle, rectangle coordinates.
|
|
virtual void | rectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t colour) |
| Draw rectangle, rectangle coordinates.
|
|
virtual void | dRectangle (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t colour) |
| Draw rectangle, vector coordinates.
|
|
virtual void | roundedRectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t radius, uint16_t colour) |
| Draw rectangle, rectangle coordinates.
|
|
virtual void | dRoundedRectangle (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t radius, uint16_t colour) |
| Draw rounded rectangle, vector coordinates.
|
|
virtual void | point (uint16_t x1, uint16_t y1, uint16_t colour) |
| Draw pixel.
|
|
uint16_t | readPixel (uint16_t x1, uint16_t y1) |
| Read pixel colour.
|
|
virtual bool | isArea () |
| Is area available?
|
|
virtual void | openArea (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy) |
| Open an area for fast sequential writing, vector coordinates.
|
|
virtual void | feedArea (uint16_t colour) |
| Feed the area with colour.
|
|
virtual void | closeArea () |
| Close the area previously opened.
|
|
virtual void | selectFont (uint8_t font) |
| Select font number.
|
|
virtual uint8_t | getFont () |
| Get font number.
|
|
virtual uint8_t | addFont (font_s fontName) |
| Add a font.
|
|
virtual void | setFontSolid (bool flag=true) |
| Set transparent or opaque text.
|
|
virtual bool | getFontSolid () |
| Get text mode.
|
|
virtual void | setFontSpaceX (uint8_t number=1) |
| Set additional spaces between two characters, horizontal axis.
|
|
virtual void | setFontSpaceY (uint8_t number=1) |
| Set additional spaces between two characters, vertical axis.
|
|
virtual uint16_t | characterSizeX (uint8_t character=0x00) |
| Character size, x-axis.
|
|
virtual uint16_t | characterSizeY () |
| Character size, y-axis.
|
|
virtual uint16_t | stringSizeX (STRING_CONST_TYPE text) |
| String size, x-axis.
|
|
virtual uint8_t | stringLengthToFitX (STRING_CONST_TYPE text, uint16_t pixels) |
| Number of characters to fit a size, x-axis.
|
|
virtual uint8_t | fontMax () |
| Number of fonts.
|
|
virtual void | gText (uint16_t x0, uint16_t y0, STRING_CONST_TYPE text, uint16_t textColour=myColours.black, uint16_t backColour=myColours.white) |
| Draw ASCII Text (pixel coordinates)
|
|
bool | isEnergy () |
| Does the screen provide energy features?
|
|
bool | isIntensity () |
| Is screen backlight variable?
|
|
void | setBacklight (bool state) |
| Turn display backlight on or off.
|
|
void | setIntensity (uint8_t intensity) |
| Set backlight intensity.
|
|
uint8_t | getIntensity () |
| Get display backlight intensity.
|
|
void | setEnergy (uint32_t seconds=6) |
| Set delay for power saving.
|
|
void | updateEnergy (bool state) |
| Update power saving.
|
|
bool | isReadable () |
| Is screen readable?
|
|
bool | isStorage () |
| Does the screen feature an external storage?
|
|
void | copyPasteArea (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t dx, uint16_t dy) |
| Copy a source area to a target area.
|
|
virtual void | copyArea (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint32_t &address) |
| Copy an area to an external support.
|
|
virtual void | pasteArea (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint32_t &address, bool option=false) |
| Paste an area from an external support.
|
|
bool | isTouch () |
| Is touch available?
|
|
bool | isTouchEvent () |
| Are touch events available?
|
|
bool | getTouch (touch_t &touch) |
| Poll touch.
|
|
void | clearTouch () |
| Clear touch.
|
|
bool | getTouchInterrupt () |
| Check touch interrupt.
|
|
void | calibrateTouch () |
| Calibrate the touch.
|
|
| hV_Screen_Virtual ()=default |
| Constructor.
|
|
| ~hV_Screen_Virtual ()=default |
| Destructor.
|
|
Class for Pervasive Displays iTC screens.
Screen controllers
- LCD: Proprietary, SPI
- Touch: Proprietary, I2C
- Fonts: External Flash, SPI
- Note
- All commands work on the frame-buffer, to be displayed on screen with flush()