new BaseGyro()
It is a base Class of Gyro
Extends
- Electronic
Members
-
protocol
-
getter of protocol
Methods
-
axis(axis) → {Instance}
-
Set axis in order to get the coordinates by getData
Parameters:
Name Type Description axis
Number X轴(01) Y轴(02) Z轴(03)
Returns:
Instance -return instance
-
async getData() → {Promise}
-
Get data of Gyro sensor
Returns:
Promise