Documentation ¶
Index ¶
- Constants
- func BoardToPin(pin int) int
- func Delay(ms int)
- func DelayMicroseconds(microSec int)
- func DigitalRead(pin int) int
- func DigitalWrite(pin int, mode int)
- func GpioToPin(pin int) int
- func PinMode(pin int, mode int)
- func PinToGpio(pin int) int
- func SoftPwmCreate(pin int, initialValue int, pwmRange int)
- func SoftPwmWrite(pin int, value int)
- func WiringPiISR(pin int, mode int) chan int
- func WiringPiSetup() error
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 DelayMicroseconds ¶
func DelayMicroseconds(microSec int)
func DigitalRead ¶
func DigitalWrite ¶
func SoftPwmCreate ¶
func SoftPwmWrite ¶
func WiringPiISR ¶
func WiringPiSetup ¶
func WiringPiSetup() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.