FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
175
Copyright © Bridgetek Limited
Setting the background color
cmd_bgcolor(0x401010);
cmd_clock(80, 60, 50, 0, 8, 15, 0, 0);
Without the 3D look:
cmd_clock(80, 60, 50, OPT_FLAT, 8, 15,
0, 0);
The time fields can have large values. Here the hours are (7 x 3600s) and minutes
are (38 x 60s), and seconds is 59. Creating a clock face showing the time as
7.38.59:
cmd_clock(
80, 60, 50, 0,
0, 0, (7 * 3600) + (38 * 60) + 59, 0);