Documentation ¶
Index ¶
- type ADC
- type Mode
- type PWM
- func (p *PWM) Counter() uint16
- func (p *PWM) Dec()
- func (p *PWM) Enabled() bool
- func (p *PWM) Get(pin Pin) uint16
- func (p *PWM) Inc()
- func (p *PWM) Set(pin Pin, level uint16)
- func (p *PWM) SetCounter(value uint16)
- func (p *PWM) SetEnabled(enabled bool)
- func (p *PWM) SetInterrupt(handler PWM_callback_t)
- func (p *PWM) SetWrap(wrap uint16)
- func (p *PWM) Wrap() uint16
- type PWM_callback_t
- type Pin
- type Pin_callback_t
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADC ¶ added in v0.0.4
type ADC struct {
// contains filtered or unexported fields
}
func (*ADC) GetTemperature ¶ added in v0.0.4
Return temperature ReadTemperature does a one-shot sample of the internal temperature sensor and returns a celsius reading.
Only works on the channel. Other channels will return 0
func (*ADC) GetVoltage ¶ added in v0.0.4
Return voltage given the value of the reference voltage
type PWM ¶ added in v0.0.4
type PWM struct {
// contains filtered or unexported fields
}
func (*PWM) SetEnabled ¶ added in v0.0.4
func (*PWM) SetInterrupt ¶ added in v0.0.4
func (p *PWM) SetInterrupt(handler PWM_callback_t)
Set interrupt handler
If called with nil then handler is disabled
type PWM_callback_t ¶ added in v0.0.4
type PWM_callback_t func(pwm *PWM)
type Pin_callback_t ¶
type Pin_callback_t func(Pin)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.