Documentation ¶
Index ¶
- type FirmataAdaptor
- func (f *FirmataAdaptor) AnalogRead(pin string) int
- func (f *FirmataAdaptor) AnalogWrite(pin string, level byte)
- func (f *FirmataAdaptor) Connect() bool
- func (f *FirmataAdaptor) DigitalRead(pin string) int
- func (f *FirmataAdaptor) DigitalWrite(pin string, level byte)
- func (f *FirmataAdaptor) Disconnect() bool
- func (f *FirmataAdaptor) Finalize() bool
- func (f *FirmataAdaptor) I2cRead(size uint) []byte
- func (f *FirmataAdaptor) I2cStart(address byte)
- func (f *FirmataAdaptor) I2cWrite(data []byte)
- func (f *FirmataAdaptor) InitServo()
- func (f *FirmataAdaptor) PwmWrite(pin string, level byte)
- func (f *FirmataAdaptor) ServoWrite(pin string, angle byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirmataAdaptor ¶
func NewFirmataAdaptor ¶
func NewFirmataAdaptor(name, port string) *FirmataAdaptor
func (*FirmataAdaptor) AnalogRead ¶
func (f *FirmataAdaptor) AnalogRead(pin string) int
NOTE pins are numbered A0-A5, which translate to digital pins 14-19
func (*FirmataAdaptor) AnalogWrite ¶
func (f *FirmataAdaptor) AnalogWrite(pin string, level byte)
func (*FirmataAdaptor) Connect ¶
func (f *FirmataAdaptor) Connect() bool
func (*FirmataAdaptor) DigitalRead ¶
func (f *FirmataAdaptor) DigitalRead(pin string) int
func (*FirmataAdaptor) DigitalWrite ¶
func (f *FirmataAdaptor) DigitalWrite(pin string, level byte)
func (*FirmataAdaptor) Disconnect ¶
func (f *FirmataAdaptor) Disconnect() bool
func (*FirmataAdaptor) Finalize ¶
func (f *FirmataAdaptor) Finalize() bool
func (*FirmataAdaptor) I2cRead ¶
func (f *FirmataAdaptor) I2cRead(size uint) []byte
func (*FirmataAdaptor) I2cStart ¶
func (f *FirmataAdaptor) I2cStart(address byte)
func (*FirmataAdaptor) I2cWrite ¶
func (f *FirmataAdaptor) I2cWrite(data []byte)
func (*FirmataAdaptor) InitServo ¶
func (f *FirmataAdaptor) InitServo()
func (*FirmataAdaptor) PwmWrite ¶
func (f *FirmataAdaptor) PwmWrite(pin string, level byte)
func (*FirmataAdaptor) ServoWrite ¶
func (f *FirmataAdaptor) ServoWrite(pin string, angle byte)
Click to show internal directories.
Click to hide internal directories.