mirror of
https://github.com/kidoman/embd
synced 2024-12-22 04:40:04 +01:00
gpio: added missing function in fakeDigitalPin
This commit is contained in:
parent
0fa1d1b61c
commit
1d0dd75f23
@ -48,6 +48,14 @@ func (p *fakeDigitalPin) Close() error {
|
|||||||
return p.drv.Unregister(p.id)
|
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 {
|
func newFakeDigitalPin(pd *PinDesc, drv GPIODriver) DigitalPin {
|
||||||
return &fakeDigitalPin{id: pd.ID, n: pd.DigitalLogical, drv: drv}
|
return &fakeDigitalPin{id: pd.ID, n: pd.DigitalLogical, drv: drv}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user