gpio

package
v0.0.0-...-ff5e068 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GreenLedPin1 uint8 = 21
	GreenLedPin2 uint8 = 20
	GreenLedPin3 uint8 = 16

	BlueLedPin1 uint8 = 7
	BlueLedPin2 uint8 = 8
	BlueLedPin3 uint8 = 25

	RedLedPin1 uint8 = 24
	RedLedPin2 uint8 = 23
	RedLedPin3 uint8 = 18
)

Variables

This section is empty.

Functions

func GetRandomOnOff

func GetRandomOnOff() (ledState rpio.State)

func Start

func Start()

func SubRedLedAction

func SubRedLedAction(client MQTT.Client, msg MQTT.Message)

Types

type CallBackPubBlueLedStatus

type CallBackPubBlueLedStatus func(interface{})
var PubBlueLedStatus CallBackPubBlueLedStatus
var PubRedLedStatus CallBackPubBlueLedStatus

type CallBackPubGreenLedStatus

type CallBackPubGreenLedStatus func(interface{})
var PubGreenLedStatus CallBackPubGreenLedStatus

type CallBackPubRedLedStatus

type CallBackPubRedLedStatus func(interface{})

Jump to

Keyboard shortcuts

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