feat: 全量同步 254 个常用的 Arduino 扩展库文件

This commit is contained in:
yczpf2019
2026-01-24 16:05:38 +08:00
parent c665ba662b
commit 397b9a23a3
6878 changed files with 2732224 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
/*
Simple List
This program shows basic usage of QList
Created 30th November 2016
By SloCompTech
https://github.com/SloCompTech/QList
*/
#include "QList.h"
QList<String> myList;
void setup()
{
Serial.begin(115200);
myList.push_back("First"); // Add item at the back of the line
myList.push_back("Second");
myList.push_front("New first"); // Ad item at the front of the line
myList.at(1) = "NewSecond"; // Changed value of item in the list
myList[0] = "NewNewFirst"; // Changed value of item in the list
Serial.println("Items:");
// Go through items
for(int i=0;i<myList.size();i++)
{
Serial.println(myList.at(i));
}
myList.pop_back(); // Remove item at the back of the line
Serial.println("Items:");
for(int i=0;i<myList.size();i++)
{
Serial.println(myList.at(i));
}
myList.clear(); // Clear all items in table
}
void loop()
{
}