ArduinoSTL 项目使用教程

ArduinoSTL 项目使用教程

ArduinoSTLAn STL and iostream implementation based on uClibc++ that supports my CS-11M class.项目地址:https://gitcode.com/gh_mirrors/ar/ArduinoSTL

1. 项目的目录结构及介绍

ArduinoSTL 项目的目录结构如下:

ArduinoSTL/
├── keywords.txt
├── library.properties
├── LICENSE
├── README.md
└── src/
    ├── ArduinoSTL.h
    ├── new.cpp
    ├── new.h
    ├── stl/
    │   ├── algorithm
    │   ├── deque
    │   ├── functional
    │   ├── iostream
    │   ├── iterator
    │   ├── list
    │   ├── map
    │   ├── memory
    │   ├── numeric
    │   ├── queue
    │   ├── set
    │   ├── stack
    │   ├── utility
    │   ├── vector
    │   └── wchar_t.h
    └── uClibc++/
        ├── bits/
        ├── ext/
        ├── locale/
        ├── stdexcept
        ├── string
        ├── typeinfo
        └── utility

目录结构介绍

  • keywords.txt: 用于 Arduino IDE 的关键词高亮文件。
  • library.properties: 库的属性文件,包含库的名称、版本等信息。
  • LICENSE: 项目的许可证文件,采用 GPL-3.0 许可证。
  • README.md: 项目的说明文档。
  • src/: 源代码目录。
    • ArduinoSTL.h: 主头文件,包含库的主要功能。
    • new.cppnew.h: 实现动态内存分配的文件。
    • stl/: 包含标准模板库(STL)的实现文件。
    • uClibc++/: 从 uClibc++ 移植的文件。

2. 项目的启动文件介绍

项目的启动文件是 src/ArduinoSTL.h。这个文件是 ArduinoSTL 库的主头文件,包含了库的主要功能和接口。用户在使用 ArduinoSTL 库时,需要包含这个头文件。

#include <ArduinoSTL.h>

启动文件介绍

  • ArduinoSTL.h: 主头文件,包含了标准模板库(STL)的功能,如 vectoriostream 等。
  • 用户可以通过包含这个头文件来使用 STL 容器和算法。

3. 项目的配置文件介绍

项目的配置文件是 library.properties。这个文件包含了库的名称、版本、作者等信息,用于在 Arduino IDE 中识别和管理库。

配置文件内容

name=ArduinoSTL
version=1.3.3
author=Mike Matera
maintainer=Mike Matera
sentence=A port of uClibc++ for Arduino
paragraph=This library includes important C++ functions including cout and cin, printf and scanf. It also includes STL containers like vector and algorithm.
category=Other
url=https://github.com/mike-matera/ArduinoSTL
architectures=avr,megaavr

配置文件介绍

  • name: 库的名称。
  • version: 库的版本号。
  • author: 库的作者。
  • maintainer: 库的维护者。
  • sentence: 库的简短描述。
  • paragraph: 库的详细描述。
  • category: 库的分类。
  • url: 库的 GitHub 地址。
  • architectures: 支持的架构。

通过这些配置信息,用户可以在 Arduino IDE 中方便地安装和使用 ArduinoSTL 库。

ArduinoSTLAn STL and iostream implementation based on uClibc++ that supports my CS-11M class.项目地址:https://gitcode.com/gh_mirrors/ar/ArduinoSTL

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

翟苹星Trustworthy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值