Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Timer Widget ====== Timer widgets are special widgets that //do nothing// except being called at a regular basis. Their //expression// is evaluated (if the //active// expression is not zero), the result is discarded. But you can set variables in this expression, and call functions that do something useful (e.g. setting contrast or backlight). Here's the definition of a timer widget: <code> Widget <name> { class 'Timer' expression <string> active <number> update <number> } </code> ---- ===== Parameters: ===== |**expression**|//main// expression| |**active**|timer is active if != 0| |**update**|update interval (msec)| Note that the //update// and //active// expressions are evaluated every time the timer is called, sou you can modify the values at runtime. ---- ===== Example: ===== sorry, no examples yet... ---- widget_timer.txt Last modified: 2020/07/17 18:33(external edit)