gwp

package module
v0.0.0-...-1313769 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

README

gwp

Documentation

Index

Constants

View Source
const (
	PIN_GPIO_0    = 0
	PIN_GPIO_1    = 1
	PIN_GPIO_2    = 2
	PIN_GPIO_3    = 3
	PIN_GPIO_4    = 4
	PIN_GPIO_5    = 5
	PIN_GPIO_6    = 6
	PIN_GPIO_7    = 7
	PIN_I2C_SDA   = 8
	PIN_I2C_SCL   = 9
	PIN_SPI0_CE0  = 10
	PIN_SPI0_CE1  = 11
	PIN_SPI0_MOSI = 12
	PIN_SPI0_MISO = 13
	PIN_SPI0_SCLK = 14
	PIN_TXD       = 15
	PIN_RXD       = 16
	PIN_GPIO_8    = 17
	PIN_GPIO_9    = 18
	PIN_GPIO_10   = 19
	PIN_GPIO_11   = 20
	PIN_GPIO_12   = 21
	PIN_GPIO_13   = 22
	PIN_GPIO_14   = 23
	PIN_SPI1_MISO = 24
	PIN_GPIO_15   = 25
	PIN_GPIO_16   = 26
	PIN_GPIO_17   = 27
	PIN_SPI1_MOSI = 28
	PIN_SPI1_SCLK = 29
	PIN_I2C_EDA   = 30
	PIN_I2C_ECL   = 31

	WPI_MODE_PINS          = C.WPI_MODE_PINS
	WPI_MODE_GPIO          = C.WPI_MODE_GPIO
	WPI_MODE_GPIO_SYS      = C.WPI_MODE_GPIO_SYS
	WPI_MODE_PIFACE        = C.WPI_MODE_PIFACE
	WPI_MODE_UNINITIALISED = C.WPI_MODE_UNINITIALISED

	OUTPUT     = C.OUTPUT
	INPUT      = C.INPUT
	PWM_OUTPUT = C.PWM_OUTPUT
	GPIO_CLOCK = C.GPIO_CLOCK

	LOW  = C.LOW
	HIGH = C.HIGH

	PUD_OFF  = C.PUD_OFF
	PUD_DOWN = C.PUD_DOWN
	PUD_UP   = C.PUD_UP

	PWM_MODE_MS  = C.PWM_MODE_MS
	PWM_MODE_BAL = C.PWM_MODE_BAL

	INT_EDGE_SETUP   = C.INT_EDGE_SETUP
	INT_EDGE_FALLING = C.INT_EDGE_FALLING
	INT_EDGE_RISING  = C.INT_EDGE_RISING
	INT_EDGE_BOTH    = C.INT_EDGE_BOTH
)

Variables

This section is empty.

Functions

func BoardToPin

func BoardToPin(pin int) int

use RPi.GPIO's BOARD numbering

func Delay

func Delay(ms int)

func DelayMicroseconds

func DelayMicroseconds(microSec int)

func DigitalRead

func DigitalRead(pin int) int

func DigitalWrite

func DigitalWrite(pin int, mode int)

func GpioToPin

func GpioToPin(pin int) int

func PinMode

func PinMode(pin int, mode int)

func PinToGpio

func PinToGpio(pin int) int

func SoftPwmCreate

func SoftPwmCreate(pin int, initialValue int, pwmRange int)

func SoftPwmWrite

func SoftPwmWrite(pin int, value int)

func WiringPiISR

func WiringPiISR(pin int, mode int) chan int

func WiringPiSetup

func WiringPiSetup() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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