ti/ui.h

#include <ti/ui.h>

TI’s apps and the OS itself follow a common user interface design convention. While most user programs try hard to escape those conventions, these routines can help you adhere to them if you wish.

API Documentation

TI CE OS standard TI user interface stuff. Has run indicator, status bar, TI colors, and user-specified brightness.

Authors

Matt “MateoConLechuga” Waltz

Jacob “jacobly” Young

Defines

os_Brightness

uint8_t: User’s configured screen brightness

os_StatusBarBGColor

uint16_t: Status bar 565 color

Enums

enum os_colors_t

Colors used by the OS.

Values:

enumerator OS_COLOR_BLUE = 10
enumerator OS_COLOR_RED
enumerator OS_COLOR_BLACK
enumerator OS_COLOR_MAGENTA
enumerator OS_COLOR_GREEN
enumerator OS_COLOR_ORANGE
enumerator OS_COLOR_BROWN
enumerator OS_COLOR_NAVY
enumerator OS_COLOR_LTBLUE
enumerator OS_COLOR_YELLOW
enumerator OS_COLOR_WHITE
enumerator OS_COLOR_LTGRAY
enumerator OS_COLOR_MEDGRAY
enumerator OS_COLOR_GRAY
enumerator OS_COLOR_DARKGRAY

Functions

void boot_ClearVRAM(void)

Turns all of VRAM into 0xFF (white)

void os_RunIndicOn(void)

Routine to turn on the Run Indicator.

void os_RunIndicOff(void)

Routine to turn off the Run Indicator.

void os_DrawStatusBar(void)

Routine to redraw the status bar.

void os_ForceCmdNoChar(void)

Executes the assembly routine _ForceCmdNoChar.

Probably not a good idea to use in a program.