Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package main
import (
func main() {
// Initialize with path to lirc socket
ir, err := lirc.Init("/var/run/lirc/lircd")
if err != nil {
// Send Commands
// This worked on a Raspberry Pi 3 Model B with an infra-red LED
// after following the instructions at:
err = ir.Send("samsung/BN59-00516A POWER")
if err != nil {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment