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/11 22:38] jeff |
uphp:functions:adc_read [2018/09/01 09:57] jeff namespace change os->software:os |
||
---|---|---|---|
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 Wattmon releases, and has not yet been removed from the OS. The calibration constants are loaded automatically into [[uphp: |
<code php> | <code php> | ||
Line 90: | Line 90: | ||
[[uphp: | [[uphp: | ||
+ | |||
+ | [[pin_configure()]] - Configure an <tooltip title=" | ||
[[floatval()]] - < | [[floatval()]] - < | ||