Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
gpio.go
gpio_test.go

README.md

godoc

Aria G25

Package g25 implements drivers for the GPIO of the Aria G25 produced by Acme Systems.

Sample usage:

package main

import (
	"log"
	"time"

	"github.com/advancedclimatesystems/io/gpio/acme/g25"
	"github.com/advancedclimatesystems/io/gpio"
)

func main() {
	outPin, _ := g25.NewPin("N16")
	_ = outPin.SetDirection(gpio.OutDirection)

	inPin, _ := g25.NewPin("N20")
	_ = inPin.SetDirection(gpio.InDirection)
	_ = inPin.SetEdge(gpio.RisingEdge, func(p *gpio.Pin) {
		log.Printf("wow")
	})

	for i := 0; i < 4; i++ {
		_ = outPin.SetHigh()
		time.Sleep(1000 * time.Millisecond)
		_ = outPin.SetLow()
		time.Sleep(1000 * time.Millisecond)
	}
}
You can’t perform that action at this time.