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:
parent
05c03968d7
commit
e6d0ea4225
2 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue