Skip to content

nicknotfun/cec-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cec.go - a golang binding for libcec

cec.go is a Go interface to LibCEC.

Install

Make sure you have libcec and it's header files installed (apt-get install libcec-dev)

go get github.com/chbmuc/cec

Getting Started

A simple example to turn on the TV:

package main

import (
	"fmt"
	"github.com/chbmuc/cec"
)

func main() {
	c, err := cec.Open("", "cec.go")
	if err != nil {
		fmt.Println(err)
	}
	c.PowerOn(0)
}

About

cec.go - a golang binding for libcec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%