mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-04 22:17:39 +08:00
Fix DirectPin for firmata
This commit is contained in:
parent
1c2a0aa634
commit
10df7f5cc6
@ -93,6 +93,10 @@ func (f *FirmataAdaptor) AnalogRead(pin string) int {
|
||||
return -1
|
||||
}
|
||||
|
||||
func (f *FirmataAdaptor) AnalogWrite(pin string, level byte) {
|
||||
f.PwmWrite(pin, level)
|
||||
}
|
||||
|
||||
func (f *FirmataAdaptor) digitalPin(pin int) int {
|
||||
return pin + 14
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user