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,23 @@
#include <DFRobot_TCS34725.h>
DFRobot_TCS34725 tcs = DFRobot_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X) ;
void setup()
{
Serial.begin(9600);
Serial.println("Color View Test!");
if (tcs.begin()) {
Serial.println("Found sensor");
} else {
Serial.println("No TCS34725 found ... check your connections");
while (1);
}
}
void loop()
{
Serial.print("R: "); Serial.print(tcs.getRed());Serial.print(", ");
Serial.print("G: "); Serial.print(tcs.getGreen());Serial.print(", ");
Serial.print("B: "); Serial.println(tcs.getBlue());
delay(10);
}