Solo Controller Documentation 1.0
Documentation for the Solo Controller
 
Loading...
Searching...
No Matches
GrFont.h File Reference

Defines the base class used by all Graphical Fonts. More...

#include "Canvas.h"

Go to the source code of this file.

Classes

struct  CharDef_t
 Data Structure that defines an individual character. More...
 
class  GrFont
 Base class used by all Graphical Fonts. More...
 

Functions

uint16_t rgb16to12 (uint16_t color16Bit)
 Function for converting 16-bit colors into the 12-bit color used by the TFT.
 

Detailed Description

Defines the base class used by all Graphical Fonts.

Function Documentation

◆ rgb16to12()

uint16_t rgb16to12 ( uint16_t color16Bit)

Function for converting 16-bit colors into the 12-bit color used by the TFT.

Parameters
[in]color16Bit16-bit color
Returns
12-bit color in ARGB format

The 12-bit color format uses 4-bits for the alpha channel, red, green, and blue. This function sets the alpha value to 0.