Expand description
Contains prototypes for interfacing with the 3-Wire Expander.
Functions§
- ext_
adi_ ⚠analog_ calibrate - Calibrates the analog sensor on the specified port and returns the new calibration value.
- ext_
adi_ ⚠analog_ read - Gets the 12-bit value of the specified port.
- ext_
adi_ ⚠analog_ read_ calibrated - Gets the 12 bit calibrated value of an analog input port.
- ext_
adi_ ⚠analog_ read_ calibrated_ HR - Gets the 16 bit calibrated value of an analog input port.
- ext_
adi_ ⚠digital_ get_ new_ press - Gets a rising-edge case for a digital button press.
- ext_
adi_ ⚠digital_ read - Gets the digital value (1 or 0) of a port configured as a digital input.
- ext_
adi_ ⚠digital_ write - Sets the digital value (1 or 0) of a port configured as a digital output.
- ext_
adi_ ⚠encoder_ get - Gets the number of ticks recorded by the encoder.
- ext_
adi_ ⚠encoder_ init - Creates an encoder object and configures the specified ports accordingly.
- ext_
adi_ ⚠encoder_ reset - Sets the encoder value to zero.
- ext_
adi_ ⚠encoder_ shutdown - Disables the encoder and voids the configuration on its ports.
- ext_
adi_ ⚠gyro_ get - Gets the current gyro angle in tenths of a degree. Unless a multiplier is applied to the gyro, the return value will be a whole number representing the number of degrees of rotation times 10.
- ext_
adi_ ⚠gyro_ init - Initializes a gyroscope on the given port. If the given port has not previously been configured as a gyro, then this function starts a 1300 ms calibration period.
- ext_
adi_ ⚠gyro_ reset - Resets the gyroscope value to zero.
- ext_
adi_ ⚠gyro_ shutdown - Disables the gyro and voids the configuration on its port.
- ext_
adi_ ⚠led_ clear_ all - @brief Clear the entire led strip of color
- ext_
adi_ ⚠led_ clear_ pixel - @brief Clear one pixel on the led strip
- ext_
adi_ ⚠led_ init - Initializes a led on the given port.
- ext_
adi_ ⚠led_ set - @brief Set the entire led strip using the colors contained in the buffer
- ext_
adi_ ⚠led_ set_ all - @brief Set the entire led strip to one color
- ext_
adi_ ⚠led_ set_ pixel - @brief Set one pixel on the led strip
- ext_
adi_ ⚠motor_ get - Gets the last set speed of the motor on the given port.
- ext_
adi_ ⚠motor_ set - Sets the speed of the motor on the given port.
- ext_
adi_ ⚠motor_ stop - Stops the motor on the given port.
- ext_
adi_ ⚠pin_ mode - Configures the port as an input or output with a variety of settings.
- ext_
adi_ ⚠port_ get_ config - Gets the configuration for the given ADI port.
- ext_
adi_ ⚠port_ get_ value - Gets the value for the given ADI port.
- ext_
adi_ ⚠port_ set_ config - Configures an ADI port to act as a given sensor type.
- ext_
adi_ ⚠port_ set_ value - Sets the value for the given ADI port.
- ext_
adi_ ⚠potentiometer_ get_ angle - Gets the current potentiometer angle in tenths of a degree.
- ext_
adi_ ⚠potentiometer_ init - Initializes a potentiometer on the given port.
- ext_
adi_ ⚠ultrasonic_ get - Gets the current ultrasonic sensor value in centimeters.
- ext_
adi_ ⚠ultrasonic_ init - Creates an ultrasonic object and configures the specified ports accordingly.
- ext_
adi_ ⚠ultrasonic_ shutdown - Disables the ultrasonic sensor and voids the configuration on its ports.
Type Aliases§
- ext_
adi_ encoder_ t - Reference type for an initialized encoder.
- ext_
adi_ gyro_ t - Reference type for an initialized gyroscope.
- ext_
adi_ led_ t - Reference type for an initialized addressable led, which stores its smart and adi port.
- ext_
adi_ potentiometer_ t - Reference type for an initialized potentiometer.
- ext_
adi_ ultrasonic_ t - Reference type for an initialized ultrasonic.