# Examples ## Hub Outputs ### Status Light ```{literalinclude} ./python_files/hub_output_status_light.py :linenos: ``` ### Light Matrix ```{literalinclude} ./python_files/hub_output_light_matrix.py :linenos: ``` ### Speaker ```{literalinclude} ./python_files/hub_output_speaker.py :linenos: ``` ## Motor Output ### Motors Running Forever ```{literalinclude} ./python_files/motors_output_run.py :linenos: ``` ### Motors Stopping ```{literalinclude} ./python_files/motors_output_stop.py :linenos: ``` ### Motor Fixed Amount ```{literalinclude} ./python_files/motors_output_fixed.py :linenos: ``` ## Drive Base ### Drive Base Setup ```{literalinclude} ./python_files/drive_base_output.py :linenos: ``` ### Driving Forever ```{literalinclude} ./python_files/drive_base_output_forever.py :linenos: ``` ### Driving Fixed ```{literalinclude} ./python_files/drive_base_output_fixed.py :linenos: ``` ## Hub Inputs ### Buttons ```{literalinclude} ./python_files/hub_input_buttons.py :linenos: ``` ### IMU Orientation ```{literalinclude} ./python_files/hub_input_imu_orientation.py :linenos: ``` ## Motor as Sensor ### Motor Measurement Example ```{literalinclude} ./python_files/motors_input.py :linenos: ``` ## Drive Base as Sensor ### Drive Base Measurement Example ```{literalinclude} ./python_files/drive_base_input.py :linenos: ``` ## Force Sensor ### Force Sensor Example ```{literalinclude} ./python_files/force_sensor.py :linenos: ``` ## Color Sensor ### Color Sensor Example ```{literalinclude} ./python_files/color_sensor.py :linenos: ``` ## Distance Sensor ### Distance Sensor Example ```{literalinclude} ./python_files/distance_sensor.py :linenos: ```