Skip to content

ddrager/go-pi-blaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

pi-blaster.go

This package allows go programs to interface with the excellent pi-blaster for Raspberry Pi. Since this provides a FIFO buffer typically modified by command line, I thought it would be useful to write a Go package to handle this interface.

Usage

Include the repository and use like example.go:

package main

import (
  "fmt"
  "github.com/ddrager/go-pi-blaster"
)



func main() {
  fmt.Printf("Running\n")
  a := []int64{17, 22, 24}
  piblaster.Start(a)

  piblaster.Apply(17, 1);
}

Start will initialize the interface using the array of GPIO pins which are controlled by pi-blaster (or wish you want to interact with).

Apply will set the GPIO pin.

About

Golang interface to Raspberry Pi GPIO pi-blaster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages