src

command
v0.0.0-...-f96ea8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 7 Imported by: 0

README

Introduction

Making led blink

How to

Compile relay.go like this

go get github.com/stianeikeland/go-rpio
env GOOS=linux GOARCH=arm GOARM=6 go build relay.go

Copy the generated file to your Raspberry Pi device and execute it with this command

env RPIO_PIN=21 BLINK_INTERVAL=1 ./relay

env variables used

RPIO_PIN = an integer to define rpi pin used in wiring, default 21 BLINK_INTERVAL = time interval in second, default 1

Happy blinking

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL