1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 03:47:33 +02:00

gpio: added pinmap accessor for introspection usage

This commit is contained in:
Ben Delarre 2015-01-13 13:55:11 -08:00 committed by Kunal Powar
parent 05c03968d7
commit e6d0ea4225
2 changed files with 7 additions and 0 deletions

View file

@ -107,6 +107,10 @@ func (io *gpioDriver) PWMPin(key interface{}) (PWMPin, error) {
return p, nil
}
func (io *gpioDriver) PinMap() PinMap {
return io.pinMap
}
func (io *gpioDriver) Close() error {
for _, p := range io.initializedPins {
if err := p.Close(); err != nil {