Struct Pin::controls_t

Nested Relationships

This struct is a nested type of Class Pin.

Struct Documentation

struct controls_t

Structure for defining the controls of a GPIO

Public Members

unsigned char dir = 0

Direction control: 0=IN, 1=OUT.

unsigned char drive = 0

Driving state: 0=LOW, 1=HIGH.

bool inverted = false

Enable inversion of the driving state.

bool pull_up = false

Enable the pull up.