Syntax
TftSignalIcon(wX_1 As Word, wY_1 As Word, bBarCount As Byte, bBarWidth As Byte, bBarGap As Byte, bMaxHeight As Byte, bActiveBars As Byte, wActiveColor As Word, wInactiveColor As Word)
Parameters
wX_1,wY_1 — bottom-left origin
bBarCount — total number of bars
bBarWidth — width of each bar
bBarGap — the gap between bars
bMaxHeight — height of the tallest (rightmost) bar - shorter bars scale down
bActiveBars — how many bars (from the left/shortest) are lit, 0 to bBarCount
wActiveColor — 16-bit RGB565 color used for active bars.
wInactiveColor — 16-bit RGB565 color used for inactive bars.
Draws a signal-strength icon ascending bars, like a cell signal indicator
Note: use TftSignalSet() to set new signal level.
Example
|
TftSetUp(0, 0) TftResetScreen(BLACK) TftSignalIcon(270,200, 7,2,3, 20,3, GREEN,BROWN) DelayMS 1000 TftSignalSet(2) DelayMS 1000 TftSignalSet(5) DelayMS 1000 TftSignalSet(7) DelayMS 1000 TftSignalSet(5) DelayMS 1000 TftSignalSet(4) |
|
Created with the Personal Edition of HelpNDoc: Easily convert your WinHelp HLP help files to CHM with HelpNDoc's step-by-step guide