func (p Pin) Close() {
	if p.f != nil {
		p.f.Close()
		p.f = nil
	}
}
Close releases the resources related to Pin. This doen't unexport Pin, use Cleanup() instead
package gpio
import (
	"errors"
	"os"
	"time"
)
type Pin struct {
	Number    uint
	direction direction
	f         *os.File
}
func NewInput(p uint) Pin {
	pin := Pin{
		Number: p,
	}
	exportGPIO(pin)
	time.Sleep(10 * time.Millisecond)
	pin.direction = inDirection
	setDirection(pin, inDirection, 0)
	pin = openPin(pin, false)
	return pin
}
func NewOutput(p uint, initHigh bool) Pin {
	pin := Pin{
		Number: p,
	}
	exportGPIO(pin)
	time.Sleep(10 * time.Millisecond)
	initVal := uint(0)
	if initHigh {
		initVal = uint(1)
	}
	pin.direction = outDirection
	setDirection(pin, outDirection, initVal)
	pin = openPin(pin, true)
	return pin
}