sakshat

package module
v0.0.0-...-620027b Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2016 License: GPL-2.0 Imports: 5 Imported by: 0

README

SAKS-SDK-GO

一个使用 Go 语言实现 SAKS-SDK 的项目。

Documentation

Index

Constants

View Source
const (
	IC_74HC595_DS   rpio.Pin = rpio.Pin(6)
	IC_74HC595_SHCP          = rpio.Pin(19)
	IC_74HC595_STCP          = rpio.Pin(13)

	IC_TM1637_DI  = rpio.Pin(25)
	IC_TM1637_CLK = rpio.Pin(5)

	BUZZER = rpio.Pin(12)

	TACT_RIGHT   = rpio.Pin(20)
	TACT_LEFT    = rpio.Pin(16)
	DIP_SWITCH_1 = rpio.Pin(21)
	DIP_SWITCH_2 = rpio.Pin(26)

	IR_SENDER   = rpio.Pin(17)
	IR_RECEIVER = rpio.Pin(9)
	DS18B20     = rpio.Pin(4)
	UART_TXD    = rpio.Pin(14)
	UART_RXD    = rpio.Pin(15)
	I2C_SDA     = rpio.Pin(2)
	I2C_SLC     = rpio.Pin(3)
)

Variables

View Source
var (
	Buzzer             *entities.Buzzer
	LEDRow             *entities.Led74HC595
	DigitalDisplay     *entities.DigitalDisplayTM1637
	Ds18b20            *entities.DS18B20
	TactRow, DipSwitch *entities.TactRow

	TactEventHandler      func(rpio.Pin, bool)
	DipSwitchEventHandler func([]bool)
)

Functions

func Clean

func Clean()

func OnDipSwitchEvent

func OnDipSwitchEvent(status []bool)

func OnTactEvent

func OnTactEvent(pin rpio.Pin, status bool)

func SaksGpioInit

func SaksGpioInit()

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