EasyManua.ls Logo

Bridgetek FT801 - CMD_CLOCK - draw an analog clock

Default Icon
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
173
Product Page
Document Feedback Copyright © Bridgetek Limited
5.26 CMD_CLOCK - draw an analog clock
C prototype
void cmd_clock( int16_t x,
int16_t y,
int16_t r,
uint16_t options,
uint16_t h,
uint16_t m,
uint16_t s,
uint16_t ms );
Parameters
x
x-coordinate of clock center, in pixels
y
y-coordinate of clock center, in pixels
options
By default the clock dial is drawn with a 3D effect and the name of this option
is OPT_3D. Option OPT_FLAT removes the 3D effect. With option
OPT_NOBACK, the background is not drawn. With option OPT_NOTICKS, the
twelve hour ticks are not drawn. With option OPT_NOSECS, the seconds hand
is not drawn. With option OPT_NOHANDS, no hands are drawn. With option
OPT_NOHM, no hour and minutes hands are drawn.
h
hours
m
minutes
s

Table of Contents