2021-12-18 12:14:36 -05:00
|
|
|
# Syntax Colouring Map for GY521
|
2021-01-29 06:31:58 -05:00
|
|
|
|
2021-12-18 12:14:36 -05:00
|
|
|
|
|
|
|
# Data types (KEYWORD1)
|
2021-01-29 06:31:58 -05:00
|
|
|
GY521 KEYWORD1
|
|
|
|
|
2021-12-18 12:14:36 -05:00
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
# Methods and Functions (KEYWORD2)
|
|
|
|
begin KEYWORD2
|
|
|
|
isConnected KEYWORD2
|
2024-05-10 10:22:06 -04:00
|
|
|
getAddress KEYWORD2
|
2021-06-13 10:00:27 -04:00
|
|
|
reset KEYWORD2
|
2021-01-29 06:31:58 -05:00
|
|
|
wakeup KEYWORD2
|
2021-06-13 10:00:27 -04:00
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
read KEYWORD2
|
2022-07-27 06:42:05 -04:00
|
|
|
readAccel KEYWORD2
|
|
|
|
readGyro KEYWORD2
|
|
|
|
readTemperature KEYWORD2
|
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
setThrottle KEYWORD2
|
|
|
|
getThrottle KEYWORD2
|
|
|
|
setThrottleTime KEYWORD2
|
|
|
|
getThrottleTime KEYWORD2
|
2023-06-12 11:34:31 -04:00
|
|
|
setNormalize KEYWORD2
|
|
|
|
getNormalize KEYWORD2
|
2021-01-29 06:31:58 -05:00
|
|
|
|
|
|
|
setAccelSensitivity KEYWORD2
|
|
|
|
getAccelSensitivity KEYWORD2
|
|
|
|
getAccelX KEYWORD2
|
|
|
|
getAccelY KEYWORD2
|
|
|
|
getAccelZ KEYWORD2
|
|
|
|
getAngleX KEYWORD2
|
|
|
|
getAngleY KEYWORD2
|
|
|
|
getAngleZ KEYWORD2
|
|
|
|
getTemperature KEYWORD2
|
|
|
|
|
|
|
|
setGyroSensitivity KEYWORD2
|
|
|
|
getGyroSensitivity KEYWORD2
|
|
|
|
getGyroX KEYWORD2
|
|
|
|
getGyroY KEYWORD2
|
|
|
|
getGyroZ KEYWORD2
|
|
|
|
getPitch KEYWORD2
|
|
|
|
getRoll KEYWORD2
|
|
|
|
getYaw KEYWORD2
|
|
|
|
|
|
|
|
lastTime KEYWORD2
|
2024-05-10 10:22:06 -04:00
|
|
|
|
|
|
|
setDLPFMode KEYWORD2
|
|
|
|
getDLPFMode KEYWORD2
|
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
setRegister KEYWORD2
|
|
|
|
getRegister KEYWORD2
|
2024-05-10 10:22:06 -04:00
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
getError KEYWORD2
|
|
|
|
|
2021-12-18 12:14:36 -05:00
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
# Constants (LITERAL1)
|
|
|
|
GY521_LIB_VERSION LITERAL1
|
|
|
|
GY521_THROTTLE_TIME LITERAL1
|
|
|
|
GY521_OK LITERAL1
|
|
|
|
GY521_THROTTLED LITERAL1
|
|
|
|
GY521_ERROR_READ LITERAL1
|
|
|
|
GY521_ERROR_WRITE LITERAL1
|
2022-10-08 09:41:16 -04:00
|
|
|
GY521_ERROR_NOT_CONNECTED LITERAL1
|
|
|
|
|
|
|
|
GY521_RAD2DEGREES LITERAL1
|
|
|
|
GY521_RAW2DPS LITERAL1
|
|
|
|
GY521_RAW2G LITERAL1
|
|
|
|
|