Conditional compilation

Libraries ›› The CHARLIE unit ››
Parent Previous Next

Parameter / feature

$DEFINE format

Default

Example

Output port to use for Charlie Plexing

CHARLIE_PORT 'PORTx'

PORTC

{$DEFINE CHARLIE_PORT 'PORTA'}

Number of LEDs to manage.

CHARLIE_LEDS N

N = 6

{$DEFINE CHARLIE_LEDS 10}

Bold option

CHARLIE_BOLD_OPTION

None

{$DEFINE CHARLIE_BOLD_OPTION}


Bold option:



When the "bold option" is defined, the CharliePlexing procedure will use two parameters:

 - The mask of the LEDs to be on (first is bit 0).

 - The mask of the LEDs to be BOLD.