This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
uphp:functions:adc_read [2017/05/23 12:46] jeff |
uphp:functions:adc_read [2018/09/05 13:43] jeff Added links to 'wattmons' |
||
---|---|---|---|
Line 39: | Line 39: | ||
===Example #1=== | ===Example #1=== | ||
- | Read Channel 0 and use the constants v_adc_offset and v_adc_mul to obtain a calibrated voltage((**Example #1** demonstrates a legacy method to obtain a calibrated voltage, which was the primary method in early Wattmon releases, and has not yet been removed from the OS. The calibration constants are loaded automatically into [[uphp: | + | Read Channel 0 and use the constants v_adc_offset and v_adc_mul to obtain a calibrated voltage((**Example #1** demonstrates a legacy method to obtain a calibrated voltage, which was the primary method in early [[hardware: |
<code php> | <code php> |