Constants§
- E_
ADI_ ANALOG_ IN - E_
ADI_ ANALOG_ OUT - E_
ADI_ DIGITAL_ IN - E_
ADI_ DIGITAL_ OUT - E_
ADI_ ERR - E_
ADI_ LEGACY_ ENCODER - E_
ADI_ LEGACY_ GYRO - E_
ADI_ LEGACY_ PWM - E_
ADI_ LEGACY_ SERVO - E_
ADI_ LEGACY_ ULTRASONIC - E_
ADI_ POT_ EDR - E_
ADI_ POT_ V2 - E_
ADI_ TYPE_ UNDEFINED - HIGH
- INPUT
- INPUT_
ANALOG - INTERNAL_
ADI_ PORT - LOW
- NUM_
ADI_ PORTS - OUTPUT
- OUTPUT_
ANALOG
Functions§
- adi_
analog_ ⚠calibrate - Calibrates the analog sensor on the specified port and returns the new calibration value.
- adi_
analog_ ⚠read - Gets the 12-bit value of the specified port.
- adi_
analog_ ⚠read_ calibrated - Gets the 12 bit calibrated value of an analog input port.
- adi_
analog_ ⚠read_ calibrated_ HR - Gets the 16 bit calibrated value of an analog input port.
- adi_
digital_ ⚠get_ new_ press - Gets a rising-edge case for a digital button press.
- adi_
digital_ ⚠read - Gets the digital value (1 or 0) of a port configured as a digital input.
- adi_
digital_ ⚠write - Sets the digital value (1 or 0) of a port configured as a digital output.
- adi_
encoder_ ⚠get - Gets the number of ticks recorded by the encoder.
- adi_
encoder_ ⚠init - Creates an encoder object and configures the specified ports accordingly.
- adi_
encoder_ ⚠reset - Sets the encoder value to zero.
- adi_
encoder_ ⚠shutdown - Disables the encoder and voids the configuration on its ports.
- 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.
- 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.
- adi_
gyro_ ⚠reset - Resets the gyroscope value to zero.
- adi_
gyro_ ⚠shutdown - Disables the gyro and voids the configuration on its port.
- adi_
led_ ⚠clear_ all - @brief Clear the entire led strip of color
- adi_
led_ ⚠clear_ pixel - @brief Clear the entire led strip of color
- adi_
led_ ⚠init - Initializes a led on the given port of the original led.
- adi_
led_ ⚠set - @brief Set the entire led strip using the colors contained in the buffer
- adi_
led_ ⚠set_ all - @brief Set the entire led strip to one color
- adi_
led_ ⚠set_ pixel - @brief Set one pixel on the led strip
- adi_
motor_ ⚠get - Gets the last set speed of the motor on the given port.
- adi_
motor_ ⚠set - Sets the speed of the motor on the given port.
- adi_
motor_ ⚠stop - Stops the motor on the given port.
- adi_
pin_ ⚠mode - Configures the port as an input or output with a variety of settings.
- adi_
port_ ⚠get_ config - Gets the configuration for the given ADI port.
- adi_
port_ ⚠get_ value - Gets the value for the given ADI port.
- adi_
port_ ⚠set_ config - Configures an ADI port to act as a given sensor type.
- adi_
port_ ⚠set_ value - Sets the value for the given ADI port.
- adi_
potentiometer_ ⚠get_ angle - Gets the current potentiometer angle in tenths of a degree.
- adi_
potentiometer_ ⚠init - Initializes a potentiometer on the given port of the original potentiometer.
- adi_
potentiometer_ ⚠type_ init - Initializes a potentiometer on the given port.
- adi_
ultrasonic_ ⚠get - Gets the current ultrasonic sensor value in centimeters.
- adi_
ultrasonic_ ⚠init - Creates an ultrasonic object and configures the specified ports accordingly.
- adi_
ultrasonic_ ⚠shutdown - Disables the ultrasonic sensor and voids the configuration on its ports.
Type Aliases§
- adi_
encoder_ t - Reference type for an initialized encoder.
- adi_
gyro_ t - Reference type for an initialized gyroscope.
- adi_
led_ t - Reference type for an initialized addressable led.
- adi_
port_ config_ e_ t - Represents the port type for an ADI port.
- adi_
potentiometer_ t - Reference type for an initialized potentiometer.
- adi_
potentiometer_ type_ e_ t - Represents the potentiometer version type.
- adi_
ultrasonic_ t - Reference type for an initialized ultrasonic.