ideaBox

All extension methods and properties in the ideaBox library depend on the ideaBox extension package. Please import ideaBox before use.

import ideaBox

IdeaBox supports burning firmware as ‘ideaBox’\ (where the digital tube display and gesture need to import mCookie, and a dedicated ideaBox module is required to support ). In the text, the parameters that support the float type or the valid string float type are directly converted into int type in actual operation. For example, 2.3 is equivalent to 2, and '2.6' is equivalent to 2.

1 Digital tube display

ideaBox\_00

mcookie.setNixietube(9, 0, num)
"""
    Num : to display the content on the digital tube, the default is 5, the parameter is 5, including 0-9
    Function : Display the specified digital content on the digital tube
    Parameter type : num supports int, float, and pure numeric strings
    Applicable module : ideaBox
"""

9,0 two parameters are fixed parameters, can not be modified

2 Attitude

ideaBox\_01

mcookie.getMotion(8, 1, status)
"""
    status : Attitude state, default is rollover, parameter is 'X', including 'X' (roll), 'Y' (pitch), 'Z' (yaw)
    Function : Used to judge the current posture status
    Return value type : Return value is int
    Parameter type : status Only string types are supported
"""

8, 1 two parameters are fixed parameters and cannot be modified

3 Audio Player

ideaBox\_02

ideabox.audioPlay(song)
"""
    song : The music number to play, the default is 1, including 1-10
    Function : Play to select music tracks
    Parameter type : song supports int, float, and pure numeric strings
    Applicable module : ideaBox
    Hardware support: Need ideaBox to insert sdk card for music player selection
"""

4 Audio stop

ideaBox\_02

ideabox.audioStop()
"""
    Function : Stop playing music
    Applicable module : ideaBox
"""

5 Audio volume

ideaBox\_04

ideabox.audioVolume(volume)
"""
    volume : Audio volume, default is 20%, you can enter different volume as needed
    Function : Control audio volume
    Parameter type : volume supports int, float, and pure numeric strings
    Applicable module : ideaBox
"""

6 Steering wheel rotation

ideaBox\_05

ideabox.servoWrite(angle)
"""
    angle : Steering wheel rotation angle
    Function : Controls the rotation to the specified angle
    Parameter type : angle Supports int, float, and pure numeric strings
    Applicable module : ideaBox
"""