src

command
v0.0.0-...-3821468 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 led.go like this

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

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

env RPIO_PIN=18 BLINK_INTERVAL=1 ./led

env variables used

RPIO_PIN = an integer to define rpi pin used in wiring, default 18 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