Documentation ¶
Overview ¶
gopio package implements simple API in go to work with sysfs gpios. Read more about sysfs here: https://www.kernel.org/doc/Documentation/gpio/sysfs.txt
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pin ¶
type Pin struct { Id int // Pin id // contains filtered or unexported fields }
Pin struct represents gpio abstraction with methods associated.
func (*Pin) GetMode ¶
GetMode returns current pin mode reading it from direction descriptor associated to the pin.
func (*Pin) GetValue ¶
GetValue returns current pin value reading it from direction descriptor associated to the pin.
Click to show internal directories.
Click to hide internal directories.