Skip to content

Statically allocate DFPlayerMini #75

Description

@delta-12

The driver for the DFPlayerMini is written in C++, and since C does not support C++ classes when C++ code is defined with C linkage, the C++ class for the driver must be dynamically in C++, and the pointer to the class is returned so that C does not have to work with the class directly. However, dynamic allocation should be avoided whenever possible to prevent potentially exceeding the size of the memory at runtime. When static allocation is used, the size of the memory footprint can be evaluated at compile time. Therefore, the C++ class for the DFPlayerMini driver should be statically allocated if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions