Collision Class
- ID: collision
- Name: Collision Sensor
- Other Names: Grove Collision Sensor
- Category: accelerometer
- Manufacturer: seeed
- Connection: gpio
The Collision Sensor can detect whether any collision movement or vibration happens. It outputs a low pulse signal when vibration is detected.
Item Index
Methods
Methods
Collision
(
Number
-
pin
Collision sensor constructor
Parameters:
-
pin
NumberDigital pin to use
Returns:
Number:
isColliding
()
Boolean
Returns:
Boolean:
bool Defines whether something is colliding with sensor