Chinese, Simplified
AmLink 平台目前只有一路ADC开放给用户,请参考下面代码:
(需导入temolin_hardware.jar库)
...
import com.temolin.hardware.AmADC; //... updateTemp(){ AmADC amADC = AmADC(12); /* 12 means adc channel, only channel 12 can be used.*/ val; val = amADC.getADC(); /* 单位是uV */ //... }