Analog to digital conversion
Init in Pin
Set the sampling channel pin
set width
Set the sampling width
set atten
Set attenuation on the input of the ADC
* ADC.ATTN_0DB: 0dB attenuation, gives a maximum input voltage of 1.00v - this is the default configuration
* ADC.ATTN_2_5DB: 2.5dB attenuation, gives a maximum input voltage of approximately 1.34v
* ADC.ATTN_6DB: 6dB attenuation, gives a maximum input voltage of approximately 2.00v
* ADC.ATTN_11DB: 11dB attenuation, gives a maximum input voltage of approximately 3.6v
read value
read ADC
Sampling at 36 pins using the adc0 channel, reading the value
Digital to analog conversion
Init in Pin
Set conversion channel
write value
Write DA value
beep with freq duration scale
Set the buzzer frequency, time and range
waveform with freq type duration scale offset invert
Set the output waveform frequency amplitude offset
stop wave
stop output
set freq
set frequency
Output waveform on 25-pin using dac0 channel