Hardware & Sensors¶
FIRST has put together a lot of great documentation that can tell you how to connect hardware devices and interact with it from robot code.
While their documentation code samples are in C++ and Java, it’s fairly straightforward to translate them to python – RobotPy includes support for all components that are supported by WPILib’s Java implementation, and generally the objects have the same name and method names.
If you have problems translating their code samples into Python, you can use our support resources to get help (see Support).