pros_devices/
lib.rs

1//! # pros-devices
2//!
3//! Functionality for accessing hardware connected to the V5 brain.
4//!
5//! ## Overview
6//!
7//! The V5 brain features 21 RJ9 4p4c connector ports (known as "Smart ports") for communicating with newer V5 peripherals, as well as six 3-wire ports with log-to-digital conversion capability for compatibility with legacy Cortex devices. This module provides access to both smart devices and ADI devices.
8//!
9//! ## Organization
10//!
11//! - [`smart`] contains abstractions and types for smart port connected devices.
12//! - [`adi`] contains abstractions for three wire ADI connected devices.
13//! - [`battery`] provides functions for getting information about the currently connected
14//!   battery.
15//! - [`controller`] provides types for interacting with the V5 controller.
16
17#![no_std]
18
19extern crate alloc;
20
21pub mod adi;
22pub mod smart;
23
24pub mod battery;
25pub mod color;
26pub mod competition;
27pub mod controller;
28pub mod peripherals;
29pub mod position;
30pub mod screen;
31pub mod usd;
32
33pub use controller::Controller;
34pub use position::Position;
35pub use screen::Screen;