piled

package module
v0.0.0-...-79eeed1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MPL-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pi-led

Utility for blinking LEDs via a Raspberry Pi.

Details

This project uses a GPIO pin for controlling an LED.

Usage

You can import pi-led as a library, and blink an LED for a given duration.

package main

import (
	piled "github.com/levsthings/pi-led"
)

func main() {
	var (
		pin      = 26
		duration = 20 // Seconds
	)
	piled.Blink(pin, duration)
}

The above example also lives in the example folder which can be built and tested.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blink(p int, s int) error

Blink expects an integer value, you should provide the GPIO pin number that you want to control the LED with.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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