5.4. PikaStdTask multitasking

    Add the dependency of PikaStdLib to requestment.txt. The version number of PikaStdLib should be the same as the version number of the kernel.

    Run pikaPackage.exe

    5.4.2. class Task():

    The Task class provides the task loop function, and a task loop can be created by creating an object of the Task class.

    Use the run_xxx() methods to specify how the task loops and execute all functions in the task object.

    Time-related functions, such as and run_until_ms(), need to provide the system clock by creating a new class that inherits from PikaStdTask, and then override the method.

    All registered functions should be non-blocking, otherwise the entire task loop will be blocked.

    Create a new class that inherits from PikaStdTask.

    Override the platformGetTick() method.

    Python use cases