_api.forcesensor – force sensor functions API

This module contains the API functions for user interaction with a force sensor brick. (Included with Spike Prime but not in the Robot Inventor kit.)

This module is imported by the mindstorms – Mindstorms branding of the user API and spike – Spike Prime branding of the user API modules so that the API can be branded appropriately in documentation (i.e. so that Mindstorms docs can tell you to import mindstorms, and Spike Prime docs can tell you to import spike).

Functions

_api.forcesensor._get_port_device(???)

???

_api.forcesensor._is_force_sensor(???)

???

ForceSensor Class

class _api.forcesensor.ForceSensor(???)

???

Methods

wait_until_released(???)

???

is_pressed(???)

???

wait_until_pressed(???)

???

_is_pressed(???)

???

get_force_percentage(???)

???

get_force_newton(???)

???

Imports