1
0
mirror of https://github.com/kidoman/embd synced 2024-06-01 16:48:06 +02:00

gpio: added missing function in fakeDigitalPin

This commit is contained in:
SjB 2014-09-02 23:33:07 -04:00
parent 0fa1d1b61c
commit 1d0dd75f23

View File

@ -48,6 +48,14 @@ func (p *fakeDigitalPin) Close() error {
return p.drv.Unregister(p.id)
}
func (p *fakeDigitalPin) Watch(edge Edge, handler func(DigitalPin)) error {
return nil
}
func (p *fakeDigitalPin) StopWatching() error {
return nil
}
func newFakeDigitalPin(pd *PinDesc, drv GPIODriver) DigitalPin {
return &fakeDigitalPin{id: pd.ID, n: pd.DigitalLogical, drv: drv}
}