pinLabel()

[Circuit Interface]
void pinLabel(unsigned short pin, const char *label, unsigned short flags = 0);

Description

Defines the label to show besides the pin.

It is possible to change the appearance of the pin and the label using flags.

Parameters

pin: the Custom Element pin to set the label of.

name: the string you want to assign as pin label

flags: LINE_OVER, BUBBLE, or CLOCK. To set multiple flags you can use the bit or operator |. This argument is optional.

Returns

Nothing.

Example Code

The codes assign the label “CLK” to the pin 13, and sets the flags BUBBLE and CLOCK

void setup() {
   pinLabel(13, "CLK", BUBBLE | CLOCK);
}

void loop() {}

Notes and Warnings

This function can work properly only in the setup context, calling it in the loop context won’t result in a pin label change.