light

package module
v0.0.0-...-04317f7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 5 Imported by: 0

README

light

repo for raspberry pi controlled light

Build Status codecov license GoDoc

Documentation

Index

Constants

View Source
const PinOffset = 14

PinOffset record raspi pin number

Variables

View Source
var Status = false

Status is on or off of a light

View Source
var TestMode = false

TestMode just set vars and do not send current to board

Functions

func Handler

func Handler(index, ico string) (http.Handler, error)

Handler handle http request for the light

func ReadFile

func ReadFile(fn string) ([]byte, error)

ReadFile read html page

func SetTestMode

func SetTestMode(set bool)

SetTestMode set TestMode

Types

This section is empty.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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