CHIP_IO

A CHIP IO library for Python: IO+PWM+SPWM+ADC+Utilities

View the Project on GitHub

CHIP_IO.LRADC

The LRADC module handles interfacing with the onboard 6-Bit, 2V tolerant ADC in the R8/GR8.

Import the LRADC module as follows

  import CHIP_IO.LRADC as LRADC

toggle_debug()

Enable/Disable the Debug

get_device_exist()

Check to see if the LRADC device exists

setup(rate=250)

Setup the LRADC, defaults to a sampling rate of 250.

get_scale_factor()

Get the scaling factor applied to raw values from the LRADC

get_allowable_sample_rates()

Get the allowable sample rates for the LRADC

set_sample_rate(rate)

Set the current sample rates for the LRADC

get_sample_rate()

Get the current sample rates for the LRADC

get_chan0_raw()

Get the raw value for LRADC Channel 0

get_chan1_raw()

Get the raw value for LRADC Channel 1

get_chan0()

Get the value for LRADC Channel 0

get_chan1

Get the value for LRADC Channel 1

home