FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
208
Copyright © Bridgetek Limited
5.36
CMD_DIAL – draw a rotary dial control
C prototype
void cmd_dial( int16_t x,
int16_t y,
int16_t r,
uint16_t options,
uint16_t val );
Parameters
x
x-coordinate of dial center, in pixels
y
y-coordinate of dial center, in pixels
r
radius of dial, in pixels.
Options
By default the dial is drawnwith a 3D effect and the value of options is zero.
Options OPT_FLAT removes the 3D effect and its value is 256
val
Specify the position of dial points by setting value between 0 and 65535
inclusive. 0 means that the dial points straight down, 0x4000 left, 0x8000 up,
and0xc000 right.