# README
Raspberry Pi IO
I/O utilities for Raspberry Pi.
Copyright and Licensing
Copyright (c) 2020 Peter Hagelund
This software is licensed under the MIT License
See LICENSE.txt
Installing
go get -u github.com/peterhagelund/go-pi
Using
TODO
# Functions
NewGPIO creates and returns a new GPIO instance.
OpenCamera opens the camera device at the specified path.
OpenI2CBus opens the I2C bus at the specified path.
# Constants
Bcm2708Base is the BCM 2708 base address.
DirectionInput is the input direction.
DirectionOutput is the output direction.
GpClr0 is the register number for GPCLR0.
GPIO10 is GPIO pin 10.
GPIO11 is GPIO pin 11.
GPIO12 is GPIO pin 12.
GPIO13 is GPIO pin 13.
GPIO14 is GPIO pin 14.
GPIO15 is GPIO pin 15.
GPIO16 is GPIO pin 16.
GPIO17 is GPIO pin 17.
GPIO18 is GPIO pin 18.
GPIO19 is GPIO pin 19.
GPIO2 is GPIO pin 2.
GPIO20 is GPIO pin 20.
GPIO21 is GPIO pin 21.
GPIO22 is GPIO pin 22.
GPIO23 is GPIO pin 23.
GPIO24 is GPIO pin 24.
GPIO25 is GPIO pin 25.
GPIO26 is GPIO pin 26.
GPIO27 is GPIO pin 27.
GPIO3 is GPIO pin 3.
GPIO4 is GPIO pin 4.
GPIO5 is GPIO pin 5.
GPIO6 is GPIO pin 6.
GPIO7 is GPIO pin 7.
GPIO8 is GPIO pin 8.
GPIO9 is GPIO pin 9.
GpioOffset is the GPIO offset into the BCM2708 register space.
GpLev0 is the register number for GPLEV0.
GpSet0 is the register number for GPSET0.
I2CFuncs gets the adapter functionality mask.
I2CPEC enables packet error checking.
I2CRdWr specifieds the use of a combined read/write )on stop only).
I2CRetries specifies the number of times a device should be polled when not acknowledging.
I2CSlave specifies the use this slave address.
I2CSlaveForce specifies the use of this slave address even if it's already in use by a driver.
I2CTenBit sets the use of ten-bit addresses (0 == 7 bits; not 0 == 10 bits).
I2CTimeout specifies the timeout in units of 10 ms.
PageSize (4K) is page size for the BCM 2708 GPIO register space.
ValueOff represents a GPIO voltage equivalent to off.
ValueOn represents a GPIO voltage equivalent to on.