# REVLib

## Overview

REVLib is a software library that supports various REV devices within the context of programming in the *FIRST* Robotics Competition.&#x20;

The following devices are supported in REVLib:

* [SPARK MAX](https://docs.revrobotics.com/brushless/spark-max/overview)
* [SPARK Flex](https://docs.revrobotics.com/brushless/spark-flex/overview)
* [Color Sensor V3](https://docs.revrobotics.com/rev-crossover-products/sensors/color-sensor)
* [Servo Hub](https://docs.revrobotics.com/rev-crossover-products/servo/servo-hub)
* [MAXSpline Encoder](https://docs.revrobotics.com/ion-control/smart-sensor/maxspline-encoder)

{% hint style="info" %}
Use of the library outside of FRC is not currently supported
{% endhint %}

## API Documentation

For a list and description of all classes:

* [Java API Documentation](https://codedocs.revrobotics.com/java/com/revrobotics/package-summary.html)
* [C++ API Documentation](https://codedocs.revrobotics.com/cpp/namespacerev.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.revrobotics.com/revlib/revlib.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
