LED7Seg  1.00
LED 7-segment library
Macros
#define Macros

Macros. More...

Macros

#define LED_GET_FONT(font, c)   ((enum led_seg)(((c) < sizeof(font)) ? pgm_read_byte_near(font + (c)) : (c)))
 Get Font Mask. More...
 

Detailed Description

Macro Definition Documentation

#define LED_GET_FONT (   font,
 
)    ((enum led_seg)(((c) < sizeof(font)) ? pgm_read_byte_near(font + (c)) : (c)))

Macro to get LED mask bits for character c in a font table.

Parameters
fontFont table
cCharacter index (0-based)
Returns
mask LED mask bits