lcd.drawRectangle¶
lcd.drawRectangle(x, y, w, h [, flags [, t [, opacity]]])
Draw a rectangle from top left corner (x,y) of specified width and height
Parameters¶
| Name | Req | Type | Description |
|---|---|---|---|
x | yes | integer | top left corner position |
y | yes | integer | top left corner position |
w | yes | integer | width in pixels |
h | yes | integer | height in pixels |
flags | no | integer | please see the Lcd functions overview |
t | no | integer | thickness in pixels, defaults to 1 (only on radios with color display) |
opacity | no | integer | opacity defaults to 0 (only on radios with color display) |
Returns¶
None.
Availability¶
- Since:
2.0.0 - Radio support:
bw-lcd - Radio support:
color-lcd
Source¶
radio/src/lua/api_colorlcd.cpp; radio/src/lua/api_stdlcd.cpp