Members | Descriptions |
---|---|
class Arduino_H7_Video |
The main class for managing the video controller and the display. |
class Arduino_H7_Video
The main class for managing the video controller and the display.
Members | Descriptions |
---|---|
public Arduino_H7_Video |
Construct a new Arduino_H7_Video object with the specified width, height, and display shield. |
public int begin |
Initialize the video controller and display. |
public void end |
De-initialize the video controller and display. |
public bool detect |
Checks if the display is connected. |
public int width |
Get the width of the display. |
public int height |
Get the height of the display. |
public bool isRotated |
Check if the display is rotated. |
public void clear |
Clear the display. |
public void beginDraw |
Begin drawing operations on the display. |
public void endDraw |
End drawing operations on the display. |
public void set |
Set the color of the pixel at the specified coordinates. |
Note: For all drawing functions, refer to the documentation of the
ArduinoGraphics
library.
public
Arduino_H7_Video
(int width, int height, H7DisplayShield &shield)
Construct a new Arduino_H7_Video object with the specified width, height, and display shield.
width
: The width of the display.height
: The height of the display.shield
: The display shield used.- GigaDisplayShield: Giga Display Shield
- USBCVideo: Display attach to the USB-C port
public int
begin
()
Initialize the video controller and display.
int
: 0 if initialization is successful, otherwise an error code.
public void
end
()
De-initialize the video controller and display.
public bool
detect
()
Checks if the display is connected.
bool
: True if the display is connected, False otherwis.
public int
width
()
Get the width of the display.
int
: The width of the display.
public int
height
()
Get the height of the display.
int
: The height of the display.
public bool
isRotated
()
Check if the display is rotated.
bool
: True if the display is rotated, false otherwise.
public void
clear
()
Clear the display.
public void
beginDraw
()
Begin drawing operations on the display.
public void
endDraw
()
End drawing operations on the display.
public void
set
(int x, int y, uint8_t r, uint8_t g, uint8_t b)
Set the color of the pixel at the specified coordinates.
x
: The x-coordinate of the pixel.y
: The y-coordinate of the pixel.r
: The red component of the color.g
: The green component of the color.b
: The blue component of the color.
Note: For detailed information on drawing functions, please refer to the documentation of the
ArduinoGraphics
library.