Analog to Digital Conversion
Init in Pin
Set the sampling channel pin
set width
Set the sampling width
set atten
Set ADC input attenuation
* ADC.ATTN_0DB: 0dB attenuation, providing a maximum input voltage of 1.00v
* ADC.ATTN_2_5DB: 2.5dB attenuation, providing an approximate maximum input voltage of 1.34v
* ADC.ATTN_6DB: 6dB attenuation, providing an approximate maximum input voltage of 2.00v
* ADC.ATTN_11DB: 11dB attenuation, providing an approximate maximum input voltage of 3.6v
read value
Read the ADC value
Sample on channel adc0 at pin 36, read the value
Digital to Analog Conversion
Init in Pin
Set the conversion channel
write value
Write the DA value
beep with freq duration scale
Set the buzzer frequency, duration, and amplitude
waveform with freq type duration scale offset invert
Set the waveform frequency, amplitude, offset
stop wave
Stop the output
set freq
Set the frequency
Output waveform on dac0 channel at pin 25