Documentation ¶
Index ¶
Constants ¶
View Source
const RECEIVE_ONLY = 3
View Source
const TRANSMIT_AND_RECEIVE = 1
View Source
const TRANSMIT_ONLY = 2
Variables ¶
This section is empty.
Functions ¶
func LinuxFindDevices ¶
func LinuxFindDevices()
func LinuxGetDeviceType ¶
func LinuxGetLIRCDevices ¶
func LinuxGetLIRCDevices() (results []string)
Types ¶
type IRController ¶
type IRController struct { DevicePaths []string `yaml:"device_paths"` DevicePath string `yaml:"device_path"` DeviceType int `yaml:"device_type"` }
func NewLinux ¶
func NewLinux() (result IRController)
https://github.com/google/gousb/tree/master?tab=readme-ov-file https://github.com/libusb/libusb/wiki sudo apt-get install libusb-1.0-0-dev -y https://pkg.go.dev/github.com/google/gousb#DeviceDesc
func (*IRController) Receive ¶
func (irc *IRController) Receive()
func (*IRController) Scan ¶
func (irc *IRController) Scan()
func (*IRController) Transmit ¶
func (irc *IRController) Transmit(code string)
func (*IRController) TransmitLinux ¶
func (irc *IRController) TransmitLinux(code string)
Click to show internal directories.
Click to hide internal directories.