Documentation ¶
Index ¶
- type SparkCoreAdaptor
- func (s *SparkCoreAdaptor) AnalogRead(pin string) int
- func (s *SparkCoreAdaptor) AnalogWrite(pin string, level byte)
- func (s *SparkCoreAdaptor) Connect() bool
- func (s *SparkCoreAdaptor) DigitalRead(pin string) int
- func (s *SparkCoreAdaptor) DigitalWrite(pin string, level byte)
- func (s *SparkCoreAdaptor) Finalize() bool
- func (s *SparkCoreAdaptor) PwmWrite(pin string, level byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SparkCoreAdaptor ¶
func NewSparkCoreAdaptor ¶
func NewSparkCoreAdaptor(name string, deviceID string, accessToken string) *SparkCoreAdaptor
func (*SparkCoreAdaptor) AnalogRead ¶
func (s *SparkCoreAdaptor) AnalogRead(pin string) int
func (*SparkCoreAdaptor) AnalogWrite ¶
func (s *SparkCoreAdaptor) AnalogWrite(pin string, level byte)
func (*SparkCoreAdaptor) Connect ¶
func (s *SparkCoreAdaptor) Connect() bool
func (*SparkCoreAdaptor) DigitalRead ¶
func (s *SparkCoreAdaptor) DigitalRead(pin string) int
func (*SparkCoreAdaptor) DigitalWrite ¶
func (s *SparkCoreAdaptor) DigitalWrite(pin string, level byte)
func (*SparkCoreAdaptor) Finalize ¶
func (s *SparkCoreAdaptor) Finalize() bool
func (*SparkCoreAdaptor) PwmWrite ¶
func (s *SparkCoreAdaptor) PwmWrite(pin string, level byte)
Click to show internal directories.
Click to hide internal directories.