groundPin()
[Circuit Interface]
void groundPin(unsigned short pin);Description
Configure the specific pin to behave as the chip’s ground.
It is necessary to define the ground pin for the Custom Element to work correctly.
Parameters
pin: the Custom Element pin to set as ground.
Returns
Nothing.
Example Code
The code defines the digital pin 6 and sets it as the ground.
void setup() {
groundPin(6);
}
void loop() {}Notes and Warnings
Any pin can be defined as ground, except the power pin and those previously defined as output pins.
