src

command
v0.0.0-...-75c1d0d Latest Latest
Warning

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

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

README

Introduction

Making leds blink

Wiring

traffic light

flame sensor Raspberry Pi
Ground GND
Vcc / + 5V
DO GPIO 21

How to build

Compile flame.go like this

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

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

env RED_PIN=12 YELLOW_PIN=13 GREEN_PIN=18 ./flame

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