Documentation ¶ Index ¶ Constants func New(cfg Config, ch chan<- Event) *device type Config Constants ¶ View Source const ( DEFAULT_PWM = 1000 // Default PWM frequency ) Variables ¶ This section is empty. Functions ¶ func New ¶ func New(cfg Config, ch chan<- Event) *device Create new GPIO, with channel. Panics on error Types ¶ type Config ¶ type Config struct { In []Pin // Pins in input mode Out []Pin // Pins in output mode PWM []Pin // Output pins with PWM Watch []Pin // Input pins to watch } Source Files ¶ View all Source files gpio.go Click to show internal directories. Click to hide internal directories.